From 6a416e69357d29130c2774e14d72e200250877ef Mon Sep 17 00:00:00 2001 From: Sergey Zelenov Date: Tue, 16 Sep 2025 18:22:45 +0200 Subject: [PATCH] feat(NODE-7157): deprecate `retryWrites` in `CommandOperationOptions` --- src/operations/command.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/operations/command.ts b/src/operations/command.ts index 59f8a4776db..b08f83e1996 100644 --- a/src/operations/command.ts +++ b/src/operations/command.ts @@ -53,7 +53,11 @@ export interface CommandOperationOptions * In server versions 4.4 and above, 'comment' can be any valid BSON type. */ comment?: unknown; - /** Should retry failed writes */ + /** + * @deprecated + * This option is deprecated and will be removed in a future release as it is not used + * in the driver. Use MongoClientOptions or connection string parameters instead. + * */ retryWrites?: boolean; // Admin command overrides.