Mercury.Page (mercury_client v1.0.0)

Copy Markdown View Source

A single page of results from a list/2 call, along with cursors for fetching the next or previous page.

See Mercury.Pagination.stream/1 for lazily walking every page.

Summary

Types

t()

@type t() :: t(any())

t(item)

@type t(item) :: %Mercury.Page{
  items: [item],
  next_page: String.t() | nil,
  previous_page: String.t() | nil
}