Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReplaceOneModel<TSchema>

Type parameters

Hierarchy继承层级

  • ReplaceOneModel

Index索引

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