type

TypedPage

A typed list result with the ordinary page metadata.

Properties

PropertyTypeDescription
Documents[]DocumentDecoded generated-model documents for the current page.
PageintOne-based current page number.
LimitintRequested maximum documents per page.
Total*intTotal documents matching the query before pagination.
HasNextPageboolThe 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 }

Source core/typed_local.go:45