S
S
Shyrick2015-04-24 16:17:47
MongoDB
Shyrick, 2015-04-24 16:17:47

Which database command corresponds to the mongo shell find() method?

Studying the MongoD documentation, I did not find the database command, which is responsible for fetching data. Those. in the javascript mongo shell there are methods find () and findOne () but the command corresponding to them to the database could not be found .
Maybe someone has information?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alxalx, 2015-07-02
@alxalx

I also asked the same question, I can only assume that find () is implemented through the aggregation pipeline, which means that the aggregate command and $match stage correspond to it.

N
Nikolai, 2015-04-30
@jaymecd

But because find() is not a command, but a method that returns a cursor.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question