PyMongo
Update Operators
collection.update_one( { 'last_name': ‘Kim' }, { '$set': { 'money' : 1000000 } } )collection.update_one(<query>, <update>[, <options>])
collection.update_many(<query>, <update>[, <options>])
collection.update(<query>, <update>[, <options>]) # DeprecatedOperators
Last updated
Was this helpful?