Forage.Paginator.paginate
You're seeing just the function
paginate
, go back to Forage.Paginator module for more information.
Link to this function
paginate(forage_plan_or_params, schema_or_query, repo, options, repo_opts \\ [])
Specs
paginate( Forage.ForagePlan.t() | map(), atom() | Ecto.Query.t(), atom(), Keyword.t(), Keyword.t() ) :: map()
Build properly paginated Ecto queries from a set of parameters.
Requires a repo with a paginate/2
function.
The easiest way of having a compliant repo is to use Paginator, ...
inside your Repo
.