mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 04:04:29 +03:00
[MongoDB] Fix comment: wrong method (#4779)
This commit is contained in:
parent
16fa336a43
commit
665c28c90e
@ -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' })
|
||||
|
Loading…
Reference in New Issue
Block a user