Skip to main content
Module

x/mongoose/types/models.d.ts>mongoose.UpdateManyModel

MongoDB object modeling designed to work in an asynchronous environment.
Latest
interface mongoose.UpdateManyModel
import { type mongoose } from "https://deno.land/x/mongoose@8.6.3/types/models.d.ts";
const { UpdateManyModel } = mongoose;

Type Parameters

optional
TSchema = AnyObject

Properties

filter: RootFilterQuery<TSchema>

The filter to limit the updated documents.

update: UpdateQuery<TSchema>

A document or pipeline containing update operators.

optional
arrayFilters: AnyObject[]

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

optional
collation: mongodb.CollationOptions

Specifies a collation.

optional
hint: mongodb.Hint

The index to use. If specified, then the query system will only consider plans using the hinted index.

optional
upsert: boolean

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

optional
timestamps: boolean

When false, do not add timestamps. When true, overrides the timestamps option set in the bulkWrite options.