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

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

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

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.