Q. Which method updates a document in MongoDB?
Solution:
updateOne() updates a single document in a collection.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
updateOne() updates a single document in a collection.
Strengthen Your Practice with our comprehensive question bank.