Current section

Files

Jump to
server_utils lib pagination cursor page_info.ex
Raw

lib/pagination/cursor/page_info.ex

defmodule ServerUtils.Pagination.Cursor.PageInfo do
@moduledoc """
Moule that represents a cursor pagination
"""
@type t :: %__MODULE__{
has_next_page: boolean(),
end_cursor: String.t()
}
@enforce_keys [:has_next_page, :end_cursor]
defstruct @enforce_keys
end