1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 20:10:49 +02:00

[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

View File

@@ -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' })