Updating data — Mongo Db
https://medium.com/@manishkumarr014/updating-data-mongo-db-10b04f1c118b
After we have inserted the documents we see that the value/values for some property/properties is/are incorrect. So we make use of update method on the collection to make corrections. Following is the command used to update document in a collection:
db.collectionName.update(query,update,options)
Updating data — Mongo Db
Jun 26, 2018, 9:22pm UTC
https://medium.com/@manishkumarr014/updating-data-mongo-db-10b04f1c118b
> After we have inserted the documents we see that the value/values for some property/properties is/are incorrect. So we make use of update method on the collection to make corrections. Following is the command used to update document in a collection:
> db.collectionName.update(query,update,options)