Skip to content

Commit

Permalink
update deprecation comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Sep 13, 2024
1 parent ee93834 commit 56772b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/operations/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export interface CommandOperationOptions
// Admin command overrides.
dbName?: string;
authdb?: string;
/** @deprecated Will be removed in the next major version. Set writeConcern.w to 0 instead. */
/**
* @deprecated
* Will be removed in the next major version. Set writeConcern.w to 0 instead.
*
* **WARNING:** When this flag is true, it may result in indeterminate driver behavior.
*/
noResponse?: boolean;
}

Expand Down
1 change: 0 additions & 1 deletion src/operations/run_command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class RunAdminCommandOperation<T = Document> extends AbstractOperation<T>
constructor(
public command: Document,
public override options: RunCommandOptions & {
/** @deprecated Will be removed in the next major version, and replaced with an option to set writeConcern.w to 0 */
noResponse?: boolean;
bypassPinningCheck?: boolean;
}
Expand Down

0 comments on commit 56772b7

Please sign in to comment.