HasValidation
Specifies validation rules for documents in a collection.
To learn more about validation, see HasValidation.validator.
Inheritors
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
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
Writes the result of simplifying this expression into writer.