PaginateSelector
Pages through a list by page number, reporting totals with each page.
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TResult
Section titled “TResult”TResult
The type of each result.
Methods
Section titled “Methods”execute()
Section titled “execute()”execute():
Promise<PageSelectorResult<TResult>>
Runs the selection and returns the requested page with its totals.
Returns
Section titled “Returns”Promise<PageSelectorResult<TResult>>
first()
Section titled “first()”first():
Promise<TResult|undefined>
Runs the selection for a single result.
Returns
Section titled “Returns”Promise<TResult | undefined>
The first result, or undefined when nothing matches.
limit()
Section titled “limit()”limit(
value):this
Sets the page size.
Parameters
Section titled “Parameters”number
A positive integer.
Returns
Section titled “Returns”this
Throws
Section titled “Throws”(error-008-invalid-selector-limit) when value is not a positive integer.

