Endon.aggregate

You're seeing just the function aggregate, go back to Endon module for more information.
Link to this function

aggregate(column, aggregate, conditions \\ [])

View Source

Specs

aggregate(atom(), :avg | :count | :max | :min | :sum, where_conditions()) ::
  term() | nil

Calculate the given aggregate over the given column.

conditions are anything accepted by where/2 (including a Ecto.Query.t/0).