object ValidationAction
Determines how strictly MongoDB applies the validation rules to existing documents during an insert or update.
- Since
1.1
- Note
Requires MongoDB 3.2 or greater
- Alphabetic
- By Inheritance
- ValidationAction
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- val ERROR: ValidationAction
Documents must pass validation before the write occurs.
Documents must pass validation before the write occurs. Otherwise, the write operation fails.
- val WARN: ValidationAction
Documents do not have to pass validation.
Documents do not have to pass validation. If the document fails validation, the write operation logs the validation failure to the mongod logs.
- def fromString(validationAction: String): Try[ValidationAction]
Returns the validationAction from the string representation of a validation action.
Returns the validationAction from the string representation of a validation action.
- validationAction
the string representation of the validation action.
- returns
the validation action
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: