Interface UpdateStatement

interface UpdateStatement {
    arrayFilters?: Document[];
    collation?: CollationOptions;
    hint?: Hint;
    multi?: boolean;
    q: Document;
    u: Document | Document[];
    upsert?: boolean;
}

Properties

arrayFilters?: Document[]

An array of filter documents that determines which array elements to modify for an update operation on an array field.

collation?: CollationOptions

Specifies the collation to use for the operation.

hint?: Hint

A document or string that specifies the index to use to support the query predicate.

multi?: boolean

If true, updates all documents that meet the query criteria.

The query that matches documents to update.

The modifications to apply.

upsert?: boolean

If true, perform an insert if no documents match the query.