diff options
Diffstat (limited to 'mongodb.html.markdown')
-rw-r--r-- | mongodb.html.markdown | 2 |
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' }) |