InsertOneOptions
class InsertOneOptions<Document>(context: BsonContext) : Options, HasBypassDocumentValidation, HasComment, HasMaxTime, HasWriteConcern(source)
The options for a collection.insertOne operation.
Properties
Functions
Link copied to clipboard
Adds a new node as a child of this one.
Link copied to clipboard
Adds any number of nodes into this one.
Link copied to clipboard
Whether this operation is allowed to bypass document validation.
Link copied to clipboard
Specifies a user-defined message which will be associated with this information in the logs, etc.
Link copied to clipboard
Makes this node immutable.
Link copied to clipboard
Returns a simplified (but equivalent) expression to the current expression.
Link copied to clipboard
Writes the result of simplifying to a new BsonDocument.
Link copied to clipboard
open fun writeConcern(acknowledgement: WriteAcknowledgment? = null, writeToJournal: Boolean? = null, writeTimeout: Duration? = null)
Specifies the WriteConcern for this operation.
Link copied to clipboard
Writes the result of simplifying this expression into writer.