Interface ReplaceOneModel<TSchema>

Type Parameters

Hierarchy

  • ReplaceOneModel

Properties

collation?: CollationOptions

Specifies a collation.指定排序规则。

filter: Filter<TSchema>

The filter to limit the replaced document.用于限制被替换文档的筛选器。

hint?: Hint

The index to use. If specified, then the query system will only consider plans using the hinted index.要使用的索引。如果指定,则查询系统将只考虑使用提示索引的计划。

replacement: WithoutId<TSchema>

The document with which to replace the matched document.用于替换匹配文档的文档。

upsert?: boolean

When true, creates a new document if no document matches the query.如果为true,则在没有与查询匹配的文档的情况下创建新文档。

Generated using TypeDoc