View Source RecordListEcto.PaginateStep (record_list_ecto v0.1.2)

Apply simple pagination (offset and limit) to a query.

options

Options

  • :repo - Required. The module to be used for calling aggregate/4 on.

  • :count_by - The field by which to count the number of records that match the query. The default value is :id.

  • :page_keys - The path to be passed to get_in/2 to extract the page number parameter The default value is ["page"].

  • :per_page_keys - The path to be passed to get_in/2 to extract the number of records per page The default value is ["per_page"].

  • :per_page - Required. The number of records to be returned per page.