Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which Mongoose function is used to update a user in the provided code?
User.findOneAndUpdate()
User.modify()
User.alter()
User.updateOne()
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!