diff --git a/src/operations/command.ts b/src/operations/command.ts index 94ccc6ceaf..51a6f647e9 100644 --- a/src/operations/command.ts +++ b/src/operations/command.ts @@ -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; } diff --git a/src/operations/run_command.ts b/src/operations/run_command.ts index ad7d02c044..7c8abb7633 100644 --- a/src/operations/run_command.ts +++ b/src/operations/run_command.ts @@ -51,6 +51,7 @@ export class RunAdminCommandOperation extends AbstractOperation 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; }