Mongo.find
You're seeing just the function
find
, go back to Mongo module for more information.
Specs
find(GenServer.server(), collection(), BSON.document(), Keyword.t()) :: cursor() | {:error, term()}
Selects documents in a collection and returns a cursor for the selected documents.
For all options see Options
Use the underscore style, for example to set the option singleBatch
use single_batch
. Another example:
Mongo.find(top, "jobs", %{}, batch_size: 2)