List of usage examples for com.mongodb.client.model ValidationLevel MODERATE
ValidationLevel MODERATE
To view the source code for com.mongodb.client.model ValidationLevel MODERATE.
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#MODERATE}.//www . j ava2s. c om * * @return new {@link CollectionOptions}. * @since 2.1 */ public CollectionOptions moderateValidation() { return schemaValidationLevel(ValidationLevel.MODERATE); }