Mongo.Repo.all
You're seeing just the callback
all
, go back to Mongo.Repo module for more information.
Specs
all(module :: module(), filter :: BSON.document(), opts :: Keyword.t()) :: [ Mongo.Collection.t() ]
Selects documents for the collection defined in the given module and returns a list of collection structs for the given filter
For all options see Options
Example
MyApp.Repo.all(Post, %{title: title})
MyApp.Repo.all(Post, %{title: title}, batch_size: 2)