Pagination¶
Stateless cursor-based pagination for queries and scans.
pagination ¶
Pagination support for Dynantic.
This module provides data structures and utilities for external pagination control, enabling FastAPI backends to return pagination cursors to frontends.
PageResult
dataclass
¶
Bases: Generic[T]
Represents a single page of results with pagination cursor.
Attributes:
| Name | Type | Description |
|---|---|---|
items |
list[T]
|
List of model instances for this page |
last_evaluated_key |
dict[str, Any] | None
|
Cursor for the next page (None if no more pages) |
count |
int
|
Number of items in this page |