List of usage examples for com.mongodb.client.model ValidationLevel OFF
ValidationLevel OFF
To view the source code for com.mongodb.client.model ValidationLevel OFF.
Click Source Link
From source file:org.springframework.data.mongodb.core.CollectionOptions.java
License:Apache License
/** * Create new {@link CollectionOptions} with already given settings and {@code validationLevel} set to * {@link ValidationLevel#OFF}.//from w w w . ja v a 2 s . c o m * * @return new {@link CollectionOptions}. * @since 2.1 */ public CollectionOptions disableValidation() { return schemaValidationLevel(ValidationLevel.OFF); }