Python MongoDB Update

To update the record, or document in MongoDB, we use the update_one() method.

Code :