Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/data/deps.ts>mongo.UpdateOptions

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface mongo.UpdateOptions
import { type mongo } from "https://deno.land/x/hex@0.5.15/src/data/deps.ts";
const { UpdateOptions } = mongo;

Properties

optional
writeConcern: Document

Optional. A document expressing the write concern of the update command. Omit to use the default write concern.

optional
ordered: boolean

Optional. If true, then when an update statement fails, return without performing the remaining update statements. If false, then when an update fails, continue with the remaining update statements, if any. Defaults to true.

optional
multi: boolean

Optional. If true, updates all documents that meet the query criteria. If false, limit the update to one document that meet the query criteria. Defaults to false.

optional
arrayFilters: Document[]

optional list of array filters referenced in filtered positional operators

optional
collation: Document

Specify collation (MongoDB 3.4 or higher) settings for update operation (see 3.4 documentation for available fields).

optional
bypassDocumentValidation: boolean

Allow driver to bypass schema validation in MongoDB 3.2 or higher

optional
hint: Document

An optional hint for query optimization. See the update (https://docs.mongodb.com/manual/reference/command/update/#update-command-hint) command reference for more information.

optional
upsert: boolean

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

optional
wtimeout: number

The write concern timeout.

optional
checkKeys: boolean

If true, will throw if bson documents start with $ or include a . in any key value

optional
serializeFunctions: boolean

Serialize functions on any object.

optional
ignoreUndefined: boolean

Specify if the BSON serializer should ignore undefined fields.

optional
comment: Document

Optional. A user-provided comment to attach to this command.