Answers for "how to delete subdocument mongodb"

0

how to delete subdocument mongodb

db.getCollection('products').update({}, 
{$pull: {reviews:
{user: ObjectId("5f6e2e0b70eb0208fc84011a")}}},
{multi: true})
Posted by: Guest on September-26-2020

Code answers related to "how to delete subdocument mongodb"

Browse Popular Code Answers by Language