Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

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

Type Parameters

optional
TSchema = AnyObject

Properties

filter: FilterQuery<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.