+ 1

mongodb mongoose

how to add new properties in the mongoose database

19th Aug 2019, 10:00 AM
АлДĐșŃĐ°ĐœĐŽŃ€
АлДĐșŃĐ°ĐœĐŽŃ€ - avatar
1 Answer
0
db.collection.update({'_id' : ObjectId(...)}, {'$set' : {'create_time' : datetime(..) }}) Use $set Operator
19th Aug 2019, 3:01 PM
Thomas Wittek
Thomas Wittek - avatar