Skip to content

Commit 05c63fc

Browse files
authored
DOCSP-33850 Fixes typo in deleteMany example (#5150)
1 parent 3be42cf commit 05c63fc

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
@@ -235,7 +235,7 @@ Given a three member replica set, the following operation specifies a
235235
try {
236236
db.orders.deleteMany(
237237
{ "client" : "Crude Traders Inc." },
238-
{ w : "majority", wtimeout : 100 }
238+
{ writeConcern: { w : "majority", wtimeout : 100 }}
239239
);
240240
} catch (e) {
241241
print (e);

0 commit comments

Comments
 (0)