#07 Fetching Documents from a Collection | Fundamentals of MongoDB | Complete MongoDB Course 2022

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

I could not actually notice any difference in output for using or not using pretty() in the code....can you please help me on that?

mohammadrayhanhosain