bypassDocumentValidation property

bool bypassDocumentValidation
getter/setter pair

Applicable only if you specify the $out or $merge aggregation stages. Enables aggregate to bypass document validation during the operation. This lets you insert documents that do not meet the validation requirements.

New in version 3.2.

Implementation

bool bypassDocumentValidation;