Skip to main content
Module

x/mongo/mod.ts>InsertOptions

MongoDB driver for Deno
Extremely Popular
Go to Latest
interface InsertOptions
import { type InsertOptions } from "https://deno.land/x/mongo@v0.31.0/mod.ts";

Properties

optional
ordered: boolean

Optional. If true, then when an insert of a document fails, return without inserting any remaining documents listed in the inserts array. If false, then when an insert of a document fails, continue to insert the remaining documents. Defaults to true.

optional
writeConcern: Document

Optional. A document that expresses the write concern of the insert command. Omit to use the default write concern. Do not explicitly set the write concern for the operation if run in a transaction. To use write concern with transactions, see Transactions and Write Concern.

optional
bypassDocumentValidation: boolean

Optional. Enables insert to bypass document validation during the operation. This lets you insert documents that do not meet the validation requirements.

optional
comment: Document

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