summaryrefslogtreecommitdiffhomepage
path: root/mongodb.html.markdown
diff options
context:
space:
mode:
authorAdrien LUDWIG <42720099+Adrien-LUDWIG@users.noreply.github.com>2024-02-25 22:48:09 +0100
committerGitHub <noreply@github.com>2024-02-25 22:48:09 +0100
commit665c28c90e6c051f43d1fa3e3c2fe7543f3ae742 (patch)
tree40fac8a4f0ea93d2ca4d76b9de6594be53722336 /mongodb.html.markdown
parent16fa336a43a16c9515cdaa8a18276b05f47f3ffe (diff)
[MongoDB] Fix comment: wrong method (#4779)
Diffstat (limited to 'mongodb.html.markdown')
-rw-r--r--mongodb.html.markdown2
1 files changed, 1 insertions, 1 deletions
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(<filter>)
+// Queries are in the form of db.collectionName.delete(<filter>)
// Delete first document matching query, always returns deletedCount
db.engineers.deleteOne({ name: 'Foo Baz' })