Skip to content

Commit

Permalink
deprecate noResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
aditi-khare-mongoDB committed Sep 13, 2024
1 parent 8b59ecd commit 6422402
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/operations/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ 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. */
noResponse?: boolean;
}

Expand Down
1 change: 1 addition & 0 deletions src/operations/run_command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ 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 6422402

Please sign in to comment.