Skip to content

Commit f21d08c

Browse files
committed
docs: clean up old server mention for bypassDocumentValidation
1 parent be6df17 commit f21d08c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Diff for: src/bulk/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ export interface BulkOperationPrivate {
809809
/** @public */
810810
export interface BulkWriteOptions extends CommandOperationOptions {
811811
/**
812-
* Allow driver to bypass schema validation in MongoDB 3.2 or higher.
812+
* Allow driver to bypass schema validation.
813813
* @defaultValue `false` - documents will be validated by default
814814
**/
815815
bypassDocumentValidation?: boolean;

Diff for: src/operations/aggregate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface AggregateOptions extends CommandOperationOptions {
2121
allowDiskUse?: boolean;
2222
/** The number of documents to return per batch. See [aggregation documentation](https://www.mongodb.com/docs/manual/reference/command/aggregate). */
2323
batchSize?: number;
24-
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
24+
/** Allow driver to bypass schema validation. */
2525
bypassDocumentValidation?: boolean;
2626
/** Return the query as cursor, on 2.6 \> it returns as a real cursor on pre 2.6 it returns as an emulated cursor. */
2727
cursor?: Document;

Diff for: src/operations/find_and_modify.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface FindOneAndDeleteOptions extends CommandOperationOptions {
3838

3939
/** @public */
4040
export interface FindOneAndReplaceOptions extends CommandOperationOptions {
41-
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
41+
/** Allow driver to bypass schema validation. */
4242
bypassDocumentValidation?: boolean;
4343
/** An optional hint for query optimization. See the {@link https://www.mongodb.com/docs/manual/reference/command/update/#update-command-hint|update command} reference for more information.*/
4444
hint?: Document;
@@ -63,7 +63,7 @@ export interface FindOneAndReplaceOptions extends CommandOperationOptions {
6363
export interface FindOneAndUpdateOptions extends CommandOperationOptions {
6464
/** Optional list of array filters referenced in filtered positional operators */
6565
arrayFilters?: Document[];
66-
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
66+
/** Allow driver to bypass schema validation. */
6767
bypassDocumentValidation?: boolean;
6868
/** An optional hint for query optimization. See the {@link https://www.mongodb.com/docs/manual/reference/command/update/#update-command-hint|update command} reference for more information.*/
6969
hint?: Document;

Diff for: src/operations/insert.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class InsertOperation extends CommandCallbackOperation<Document> {
5353

5454
/** @public */
5555
export interface InsertOneOptions extends CommandOperationOptions {
56-
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
56+
/** Allow driver to bypass schema validation. */
5757
bypassDocumentValidation?: boolean;
5858
/** Force server to assign _id values instead of driver. */
5959
forceServerObjectId?: boolean;

0 commit comments

Comments
 (0)