PaginatedResult<T>
Defined in: types.ts:51
One page of results.
Type Parameters
T
T
Type of the documents on the page.
Properties
docs
docs:
T[]
Defined in: types.ts:53
Documents of the current page.
hasNextPage
hasNextPage:
boolean
Defined in: types.ts:61
Whether a next page exists.
hasPrevPage
hasPrevPage:
boolean
Defined in: types.ts:63
Whether a previous page exists.
page
page:
number
Defined in: types.ts:59
Current page number, starting at 1.
totalDocs
totalDocs:
number
Defined in: types.ts:55
Number of documents that match the query.
totalPages
totalPages:
number
Defined in: types.ts:57
Number of pages.
Last updated on