mongodb mongoose | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

mongodb mongoose

how to add new properties in the mongoose database

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