Skip to content

Commit 620972d

Browse files
authored
feat(NODE-7157): deprecate retryWrites in CommandOperationOptions (#4661)
1 parent a6eca88 commit 620972d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/operations/command.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ export interface CommandOperationOptions
5353
* In server versions 4.4 and above, 'comment' can be any valid BSON type.
5454
*/
5555
comment?: unknown;
56-
/** Should retry failed writes */
56+
/**
57+
* @deprecated
58+
* This option is deprecated and will be removed in a future release as it is not used
59+
* in the driver. Use MongoClientOptions or connection string parameters instead.
60+
* */
5761
retryWrites?: boolean;
5862

5963
// Admin command overrides.

0 commit comments

Comments
 (0)