Inserting new attribute to a document using MongoDB ( Python ) August 28, 2023 by Tarik db.collection.update({'_id' : ObjectId(...)}, {'$set' : {'create_time' : datetime(..) }})