I
I
ince2020-11-12 20:23:30
MongoDB
ince, 2020-11-12 20:23:30

How to refer to the field of the updated document?

How to refer to the field of the updated document? (in the example field name)

db.collection.updateOne({_id: ObjectId("5db9c8201fd042be95907d49")}, {$set : {"nameLower":name.toLowerCase()}});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question