MongoDB Temp Note
Thursday, January 3, 2019
Remove
1. Remove document of specified pattern
JSON data in Collection -
{ "_id" : ObjectId("5c2e4c15a11d440854f7553d"), "A" : "Apple", "B" : "Banana" }
=====> > db.esawal.remove({A: "Apple"})
WriteResult({ "nRemoved" : 1 })
2.
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment