Interface UpdateManyModel<TSchema>

Type Parameters

Hierarchy

  • UpdateManyModel

Properties

arrayFilters?: Document[]

A set of filters specifying to which array elements an update should apply.一组筛选器,指定更新应应用于哪些数组元素。

collation?: CollationOptions

Specifies a collation.指定排序规则。

filter: Filter<TSchema>

The filter to limit the updated documents.用于限制更新文档的筛选器。

hint?: Hint

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

update: UpdateFilter<TSchema> | UpdateFilter<TSchema>[]

A document or pipeline containing update operators.包含更新运算符的文档或管道。

upsert?: boolean

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

Generated using TypeDoc