Skip to main content
Module

x/denomongo_unittest_utils/deps.ts>InsertOptions

Unittest utilities for deno_mongo
Latest
interface InsertOptions
import { type InsertOptions } from "https://deno.land/x/denomongo_unittest_utils@v0.5.3/deps.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.