Python MongoDB
MongoDB Update
Updating documents
MongoDB Update
You can update a record, or document as it is called in MongoDB, by using the update_one() method.
Update Document
myquery = { "address": "Valley 345" }
newvalues = { "$set": { "address": "Canyon 123" } }
mycol.update_one(myquery, newvalues)