Skip to content

Commit 45b3f7d

Browse files
authored
DOCSP-33850 Fixes typo in deleteMany example (#5150) (#5239)
1 parent 630f417 commit 45b3f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/reference/method/db.collection.deleteMany.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Given a three member replica set, the following operation specifies a
231231
try {
232232
db.orders.deleteMany(
233233
{ "client" : "Crude Traders Inc." },
234-
{ w : "majority", wtimeout : 100 }
234+
{ writeConcern: { w : "majority", wtimeout : 100 }}
235235
);
236236
} catch (e) {
237237
print (e);

0 commit comments

Comments
 (0)