Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question