+ 1

mongodb mongoose

how to add new properties in the mongoose database

19th Aug 2019, 10:00 AM
Александр
Александр - avatar
1 Resposta
0
db.collection.update({'_id' : ObjectId(...)}, {'$set' : {'create_time' : datetime(..) }}) Use $set Operator
19th Aug 2019, 3:01 PM
Thomas Wittek
Thomas Wittek - avatar