Updating data — Mongo Db

6 years ago
Anonymous $cyhBy-qkd5

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)

Last Seen
2 hours ago
Reputation
0
Spam
0.000
Last Seen
47 minutes ago
Reputation
0
Spam
0.000
Last Seen
15 minutes ago
Reputation
0
Spam
0.000
Last Seen
52 minutes ago
Reputation
0
Spam
0.000