type
TypedPage
A typed list result with the ordinary page metadata.
Properties
| Property | Type | Description |
|---|---|---|
Documents | []Document | Decoded generated-model documents for the current page. |
Page | int | One-based current page number. |
Limit | int | Requested maximum documents per page. |
Total | *int | Total documents matching the query before pagination. |
HasNextPage | bool | The HasNextPage value. |
How it works
Document is the generated collection model supplied to NewTypedCollection. Pagination metadata follows LocalAPI.List.
Full signature
type TypedPage[Document any] struct {
Documents []Document
Page int
Limit int
Total *int
HasNextPage bool
}