Interface UpdateOneModel<TSchema>

interface UpdateOneModel<TSchema> {
    arrayFilters?: mongoose.mongo.BSON.Document[];
    collation?: CollationOptions;
    filter: mongoose.mongo.Filter<TSchema>;
    hint?: Hint;
    update: UpdateFilter<TSchema> | UpdateFilter<TSchema>[];
    upsert?: boolean;
}

Type Parameters

Properties

arrayFilters?: mongoose.mongo.BSON.Document[]

A set of filters specifying to which array elements an update should apply.

collation?: CollationOptions

Specifies a collation.

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.

A document or pipeline containing update operators.

upsert?: boolean

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