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 | NoneFields
has_previous_page — bool.
has_next_page — bool. Pass after=end_cursor to fetch the next page.
start_cursor — str | None. Cursor of the first node in this page.
end_cursor — str | 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_infohelper crosses the camelCase boundary once.
See also
Connection— the page containerpaginate_all— walks pages using these cursors