Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

PageInfo

Cursor-pagination metadata. Mirrors the GraphQL PageInfo object.

Definition

@dataclass(frozen=True)
class PageInfo:
    has_previous_page: bool
    has_next_page: bool
    start_cursor: str | None
    end_cursor: str | None

Fields

has_previous_pagebool.

has_next_pagebool. Pass after=end_cursor to fetch the next page.

start_cursorstr | None. Cursor of the first node in this page.

end_cursorstr | None. Cursor of the last node in this page.

Notes

  • snake_case attributes — this is a user-facing dataclass, not a wire shape. The _make_page_info helper crosses the camelCase boundary once.

See also