Paging nodes: offset and cursor
Defines a page node that supports offset/limit paging and opaque cursor (keyset) paging. Cursor mode needs a deterministic sort with a unique tiebreaker, and the AST enforces that requirement.
Planned. This page shows the specification from issue #182. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
An audit log grid in offset mode with limit 25. A simulated insert stream is paused.
Expected behavior
In offset mode with inserts on, rows shift between pages. In cursor mode, pages stay stable, and the AST shows an opaque 'after' token and an automatically appended tiebreaker sort key.
Planned API surface
PageNodepage.modepage.limitpage.offsetpage.afterpage.beforetiebreakerFieldmaxPageSizeAcceptance criteria
- Cursor mode automatically appends the tiebreaker to sort if it is missing (pending)
- A limit above maxPageSize is a validation error, not a silent clamp (pending)
- Cursor tokens are treated as opaque and never parsed on the client (pending)
- Offset and cursor fields are mutually exclusive in a valid AST (pending)