Returns the number of items in the current page of results.
length
returns just the number of items in the current page, not the total number of items that match the query. For the total number of items that match the query, see totalCount
.
The page size is defined by the limit()
function and can be retrieved using the pageSize
property. You can use the next()
and prev()
functions returned by coupons
to navigate the pages of a query result.