InsertOneOptions class

Constructors

InsertOneOptions({WriteConcern? writeConcern, bool? bypassDocumentValidation = null})

Properties

bypassDocumentValidation bool
Enables insert to bypass document validation during the operation. This lets you insert documents that do not meet the validation requirements.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
ordered bool
If true, perform an ordered insert of the documents in the array, and if an error occurs with one of documents, MongoDB will return without processing the remaining documents in the array.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writeConcern WriteConcern?
The WriteConcern for this insert operation
finalinherited

Methods

getOptions(Db db) Map<String, Object>
When a writeConcern is given a Db object must be specified
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited