ValidationOptions (driver-core 5.5.0 API) (original) (raw)


public final class ValidationOptions extends Object

Validation options for documents being inserted or updated in a collection

Since:

3.2

MongoDB documentation

Create Collection

Since server release

3.2

Constructors

Gets the ValidationLevel that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
Gets the validation rules if set or null.
[toString](#toString%28%29)()
Sets the ValidationAction that determines whether to error on invalid documents or just warn about the violations but allow invalid documents.
Sets the validation level that determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
Sets the validation rules for all