Interface UpdateManyModel<TSchema>

Type Parameters


  • UpdateManyModel


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: Document[] | UpdateFilter<TSchema>

The modifications to apply. The value can be either: UpdateFilter - A document that contains update operator expressions, Document[] - an aggregation pipeline.

upsert?: boolean

When true, creates a new document if no document matches the query.

Generated using TypeDoc