CreateCollectionOptions
class CreateCollectionOptions<Document : Any>(context: BsonContext) : Options, HasCapped, HasValidation<Document> , HasWriteConcern, HasComment(source)
The options for a CreateCollection command.
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
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 validator(level: ValidationLevel = ValidationLevel.Strict, action: ValidationAction = ValidationAction.Error, validator: FilterQuery<Document>.() -> Unit)
Specifies validation rules for a collection.
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.