Updating data from the Mongo DatabaseCode....// show dbs// use shohaibkart// show collectionsdb.items.updateOne({name:"mi 30s"},{$set:{price:2}})db.items.updateMany({name: "oppo 90s"}, {$set: {price: 3, rating: 1}})
No comments