This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Limits the number of items or groups the aggregation returns.
The limit()
method defines the number of results an aggregation returns in each
page. Only one page of results is retrieved at a time. The next()
method is used 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: Aggregations can only be used on collections you have created. They cannot be used on Wix app collections.
Number of items or groups to return.