bypassDocumentValidation property
Enables findAndModify to bypass document validation during the operation. This lets you update documents that do not meet the validation requirements.
New in version 3.2.
Implementation
bool bypassDocumentValidation = false;