limit( )

Limits the number of items or groups the aggregation returns.

The limit() function defines the number of results an aggregation returns in each page. Only one page of results is retreived at a time. The next() function 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.

Method Declaration
Method Parameters

The number of items or groups to return.

Was this helpful?