Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję+ 1
mongodb mongoose
how to add new properties in the mongoose database
1 Odpowiedź
0
db.collection.update({'_id' : ObjectId(...)},
{'$set' : {'create_time' : datetime(..) }})
Use $set Operator