View Source Paginator.PageInfo (bonfire v0.3.5-classic-beta.7)

Defines page page_info.

fields

Fields

  • start_cursor - an opaque cursor representing the first row of the current page, to be used with the before query parameter.
  • end_cursor - an opaque cursor representing the last row of the current page, to be used with the after query parameter.
  • limit - the maximum number of edges that can be contained in this page.
  • total_count - the total number of edges matching the query.
  • total_count_cap_exceeded - a boolean indicating whether the :total_count_limit was exceeded.

Link to this section Summary

Link to this section Types

@type opaque_cursor() :: String.t()
@type t() :: %Paginator.PageInfo{
  end_cursor: opaque_cursor() | nil,
  limit: integer(),
  start_cursor: opaque_cursor() | nil,
  total_count: integer() | nil,
  total_count_cap_exceeded: boolean() | nil
}