type
Pagination
Stable page metadata independent of document type.
Properties
| Property | Type | Description |
|---|---|---|
Page | int | The Page value. |
Limit | int | The Limit value. |
TotalDocs | *int | The TotalDocs value. |
TotalPages | *int | The TotalPages value. |
HasNextPage | bool | The HasNextPage value. |
HasPrevPage | bool | The HasPrevPage value. |
Full signature
type Pagination struct {
Page int `json:"page"`
Limit int `json:"limit"`
TotalDocs *int `json:"totalDocs,omitempty"`
TotalPages *int `json:"totalPages,omitempty"`
HasNextPage bool `json:"hasNextPage"`
HasPrevPage bool `json:"hasPrevPage"`
}