We learned how to insert and fetch documents from a collection. In this lecture, let's learn how to update an existing document in a collection. For updating documents, we have two methods:
* updateOne() - updates one document at a time
* updateMany() - updates multiple documents at a time
These two methods are supported by all major drivers available for MongoDB.
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.