mingo
    Preparing search index...

    Interface UpdateConfig

    Extra configuration to customize the update operation

    interface UpdateConfig {
        arrayFilters?: AnyObject[];
        cloneMode?: CloneMode;
        collation?: CollationSpec;
        let?: AnyObject;
        sort?: Record<string, 1 | -1>;
    }
    Index

    Properties

    arrayFilters?: AnyObject[]

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

    cloneMode?: CloneMode

    Determines how to set values to fields.

    collation?: CollationSpec

    The collation to use for the operation. Merged into Options.collation when specified.

    let?: AnyObject

    A document with a list of variables. Merged into Options.variables when specified.

    sort?: Record<string, 1 | -1>

    updateOne updates the first document in the sort order specified by this argument.