Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як оновити документ у базі даних MongoDB за допомогою моделі у Mongoose?
person.update();
Person.updateOne(person);
person.updateOne({ name: 'New Name' });
Person.update(person);
Person.findOneAndUpdate({ _id: 'documentId' }, { name: 'New Name' });
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!