From 665c28c90e6c051f43d1fa3e3c2fe7543f3ae742 Mon Sep 17 00:00:00 2001 From: Adrien LUDWIG <42720099+Adrien-LUDWIG@users.noreply.github.com> Date: Sun, 25 Feb 2024 22:48:09 +0100 Subject: [MongoDB] Fix comment: wrong method (#4779) --- mongodb.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongodb.html.markdown b/mongodb.html.markdown index 5633f3f9..f4e7d709 100644 --- a/mongodb.html.markdown +++ b/mongodb.html.markdown @@ -228,7 +228,7 @@ db.engineers.update({ name: 'Foo Baz' }, ) /////////////////////// Delete ///////////////////////// -// Queries are in the form of db.collectionName.find() +// Queries are in the form of db.collectionName.delete() // Delete first document matching query, always returns deletedCount db.engineers.deleteOne({ name: 'Foo Baz' }) -- cgit v1.2.3