Limits the number of items the distinct query returns.
The limit()
method defines the maximum number of results a distinct query returns in each page. Only one page of results is retrieved at a time. Use the next()
and prev()
methods to navigate the pages of a query result.
By default, limit
is set to 50
.
The maximum value that limit()
can accept is 1000
.
Note : For some Wix app collections, the maximum value you can specify to limit()
is lower than 1000
. For example, the maximum limit for the Wix Stores/Product
collection is 100.
Number of items to return. This is also the pageSize
of the results object.