Mongo.Repo.count
You're seeing just the callback
count
, go back to Mongo.Repo module for more information.
Specs
count(module :: module(), filter :: BSON.document(), opts :: Keyword.t()) :: {:ok, integer()}
Returns the count of documents in the given collection module for the given filter.
Options
:limit
- Maximum number of documents to fetch with the cursor:skip
- Number of documents to skip before returning the first
Example
MyApp.Repo.count(Post)