Update documents

How are the results of a find function listed in mongodb? Do they follow any kind of search algorithm to fetch the results ? Do they have a pattern or is it random for each query execution?

Hi karthikeyan_76050,

The find function will result all documents with a cursor showing you Type "it" for more. They are listed based on the order of how they were inserted by default. You can sort, limit according to your requirement.

Here is the mongodb documentation link: https://docs.mongodb.com/manual/reference/command/find/index.html

Kanika