[MongoDB] Fix comment: wrong method (#4779)

This commit is contained in:
Adrien LUDWIG 2024-02-25 22:48:09 +01:00 committed by GitHub
parent 16fa336a43
commit 665c28c90e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,7 +228,7 @@ db.engineers.update({ name: 'Foo Baz' },
) )
/////////////////////// Delete ///////////////////////// /////////////////////// 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 // Delete first document matching query, always returns deletedCount
db.engineers.deleteOne({ name: 'Foo Baz' }) db.engineers.deleteOne({ name: 'Foo Baz' })