Skip to content

Commit 56772b7

Browse files
update deprecation comment
1 parent ee93834 commit 56772b7

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/operations/command.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ export interface CommandOperationOptions
5555
// Admin command overrides.
5656
dbName?: string;
5757
authdb?: string;
58-
/** @deprecated Will be removed in the next major version. Set writeConcern.w to 0 instead. */
58+
/**
59+
* @deprecated
60+
* Will be removed in the next major version. Set writeConcern.w to 0 instead.
61+
*
62+
* **WARNING:** When this flag is true, it may result in indeterminate driver behavior.
63+
*/
5964
noResponse?: boolean;
6065
}
6166

src/operations/run_command.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export class RunAdminCommandOperation<T = Document> extends AbstractOperation<T>
5151
constructor(
5252
public command: Document,
5353
public override options: RunCommandOptions & {
54-
/** @deprecated Will be removed in the next major version, and replaced with an option to set writeConcern.w to 0 */
5554
noResponse?: boolean;
5655
bypassPinningCheck?: boolean;
5756
}

0 commit comments

Comments
 (0)