Q. Which method updates a document in MongoDB?

A
updateOne()
B
save()
C
insert()
D
replace()
Solution:

updateOne() updates a single document in a collection.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!