Limit, Offset, and Pagination
Last updated
Last updated
Sets the limit value for the query.
Sets the limit value for the query. Alias for limit
.
Sets the offset value for the query.
Helper method to calculate the limit and offset given a page number and count per page.
This method combines forPage
, count
, and get
to create a pagination struct alongside the results. Information on the paginate
method, including custom pagination collectors, can be found in the Retreiving Results section of the documentation.
Name
Type
Required
Default
Description
value
numeric
true
The limit value for the query.
Name
Type
Required
Default
Description
value
numeric
true
The limit value for the query.
Name
Type
Required
Default
Description
value
numeric
true
The offset value for the query.
Name
Type
Required
Default
Description
page
numeric
true
The page number to retrieve.
maxRows
numeric
true
The number of records per page. If a number less than 0 is passed, 0 is used instead.