Alkemist v1.0.1-rc Alkemist.Query.Paginate

Handles pagination. Expects to return a tuple with the new query and a map with the following structure:

%{
  current_page: 1,
  next_page: 2,
  per_page: 10,
  prev_page: nil,
  total_count: 20,
  total_pages: 2
}

Link to this section Summary

Link to this section Functions

Link to this function run(query, params, opts \\ [])