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.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Adds a limit stage to the aggregation pipeline.
The limit()
method adds a pipeline stage that limits the number of results to the specified count.
Maximum number of results.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.