validationAction property
Determines whether to error on invalid documents or just warn about the violations but allow invalid documents to be inserted.
New in version 3.2.
Important Validation of documents only applies to those documents as determined by the validationLevel.
validationAction | Description |
---|---|
"error" | Default. Documents must pass validation before the write occurs. Otherwise, the write operation fails. |
"warn" | Documents do not have to pass validation. If the document fails validation, the write operation logs the validation failure. |
Implementation
final String? validationAction;