Skip to content

Commit 6422402

Browse files
deprecate noResponse
1 parent 8b59ecd commit 6422402

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/operations/command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ 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. */
5859
noResponse?: boolean;
5960
}
6061

src/operations/run_command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ 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 */
5455
noResponse?: boolean;
5556
bypassPinningCheck?: boolean;
5657
}

0 commit comments

Comments
 (0)