In this lecture, you are going to learn about the different methods which we can use to fetch data from a MongoDB database. We are going to discuss two methods:
* findOne() - fetches a single document from a collection which satisfies a given filter.
* find() - fetches all the documents from a collection which satisfies a given filter.
Let's learn about these two methods in detail.
Continue this lesson in the app
Install CourseHive on Android or iOS to keep learning while you move.