having( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Filters out groups from being returned from an aggregation.

The having() method refines a WixDataAggregate so that it only includes groups from the aggregate's grouping which match the specified filter criteria.

To create a filter, use the wix-data filter() method.

Filtering using having() takes place after grouping is performed on the aggregation. To filter items before grouping, use the filter() method.

Note: Aggregations can only be used on collections you have created. They cannot be used in Wix app collections.

Method Declaration
Copy
Method Parameters
filterWixDataFilterRequired

Filter to use to filter out groups from being returned from the aggregation.

Returns
Return Type:WixDataAggregate
Did this help?