@@ -924,7 +924,7 @@ class BulkWriteOptions {
924
924
/**
925
925
* If true, allows the write to opt-out of document level validation.
926
926
*
927
- * This option is sent only if the caller explicitly provides a true value. The default is to not send a value.
927
+ * This option is sent only if the caller explicitly provides a value. The default is to not send a value.
928
928
* For servers < 3.2, this option is ignored and not sent as document validation is not available.
929
929
* For unacknowledged writes using OP_INSERT, OP_UPDATE, or OP_DELETE, the driver MUST raise an error if the caller explicitly provides a value.
930
930
*/
@@ -959,7 +959,7 @@ class InsertOneOptions {
959
959
/**
960
960
* If true, allows the write to opt-out of document level validation.
961
961
*
962
- * This option is sent only if the caller explicitly provides a true value. The default is to not send a value.
962
+ * This option is sent only if the caller explicitly provides a value. The default is to not send a value.
963
963
* For servers < 3.2, this option is ignored and not sent as document validation is not available.
964
964
* For unacknowledged writes using OP_INSERT, the driver MUST raise an error if the caller explicitly provides a value.
965
965
*/
@@ -981,7 +981,7 @@ class InsertManyOptions {
981
981
/**
982
982
* If true, allows the write to opt-out of document level validation.
983
983
*
984
- * This option is sent only if the caller explicitly provides a true value. The default is to not send a value.
984
+ * This option is sent only if the caller explicitly provides a value. The default is to not send a value.
985
985
* For servers < 3.2, this option is ignored and not sent as document validation is not available.
986
986
* For unacknowledged writes using OP_INSERT, the driver MUST raise an error if the caller explicitly provides a value.
987
987
*/
@@ -1021,7 +1021,7 @@ class UpdateOptions {
1021
1021
/**
1022
1022
* If true, allows the write to opt-out of document level validation.
1023
1023
*
1024
- * This option is sent only if the caller explicitly provides a true value. The default is to not send a value.
1024
+ * This option is sent only if the caller explicitly provides a value. The default is to not send a value.
1025
1025
* For servers < 3.2, this option is ignored and not sent as document validation is not available.
1026
1026
* For unacknowledged writes using OP_UPDATE, the driver MUST raise an error if the caller explicitly provides a value.
1027
1027
*/
@@ -1101,7 +1101,7 @@ class ReplaceOptions {
1101
1101
/**
1102
1102
* If true, allows the write to opt-out of document level validation.
1103
1103
*
1104
- * This option is sent only if the caller explicitly provides a true value. The default is to not send a value.
1104
+ * This option is sent only if the caller explicitly provides a value. The default is to not send a value.
1105
1105
* For servers < 3.2, this option is ignored and not sent as document validation is not available.
1106
1106
* For unacknowledged writes using OP_UPDATE, the driver MUST raise an error if the caller explicitly provides a value.
1107
1107
*/
@@ -1983,7 +1983,7 @@ class FindOneAndReplaceOptions {
1983
1983
/**
1984
1984
* If true, allows the write to opt-out of document level validation.
1985
1985
*
1986
- * This option is sent only if the caller explicitly provides a true value. The default is to not send a value.
1986
+ * This option is sent only if the caller explicitly provides a value. The default is to not send a value.
1987
1987
* For servers < 3.2, this option is ignored and not sent as document validation is not available.
1988
1988
*/
1989
1989
bypassDocumentValidation: Optional <Boolean >;
@@ -2101,7 +2101,7 @@ class FindOneAndUpdateOptions {
2101
2101
/**
2102
2102
* If true, allows the write to opt-out of document level validation.
2103
2103
*
2104
- * This option is sent only if the caller explicitly provides a true value. The default is to not send a value.
2104
+ * This option is sent only if the caller explicitly provides a value. The default is to not send a value.
2105
2105
* For servers < 3.2, this option is ignored and not sent as document validation is not available.
2106
2106
*/
2107
2107
bypassDocumentValidation: Optional <Boolean >;
@@ -2486,6 +2486,8 @@ aforementioned allowance in the SemVer spec.
2486
2486
2487
2487
## Changelog
2488
2488
2489
+ - 2024-11-04: Always send a value for ` bypassDocumentValidation ` if it was specified.
2490
+
2489
2491
- 2024-10-30: Document query limitations in ` countDocuments ` .
2490
2492
2491
2493
- 2024-10-28: Clarified that generated identifiers should be prepended to documents.
0 commit comments