Flop.Relay.page_info_from_meta

You're seeing just the function page_info_from_meta, go back to Flop.Relay module for more information.
Link to this function

page_info_from_meta(meta)

View Source (since 0.8.0)

Specs

page_info_from_meta(Flop.Meta.t()) :: page_info()

Takes a Flop.Meta struct and returns a map with the Relay page info.

Example

iex> Flop.Relay.page_info_from_meta(%Flop.Meta{
...>    has_previous_page?: true,
...>    has_next_page?: true,
...>    start_cursor: "a",
...>    end_cursor: "b"
...> })
%{
  has_previous_page: true,
  has_next_page: true,
  start_cursor: "a",
  end_cursor: "b"
}