From 6422402188bb3fd8573a96c19dda0027dacbcdae Mon Sep 17 00:00:00 2001 From: Aditi Khare Date: Fri, 13 Sep 2024 10:57:11 -0400 Subject: [PATCH] deprecate noResponse --- src/operations/command.ts | 1 + src/operations/run_command.ts | 1 + 2 files changed, 2 insertions(+) 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; }