MongoDB modifies data through Save
1. View the collection
Show collections
two。 View data in the collection
Db.runoob.find () .pretty ()
3. Modify multiple pieces of data in the collection
Db.runoob.save ({
"_ id": ObjectId ("5bce9025cd35ce6f77bf0198")
"test": 4
})
4. View and format the data in the collection
Db.runoob.find () .pretty ()