This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Groups items together in an aggregation.
The group()
method refines a WixDataAggregate
so that its items are
grouped by the specified field or fields.
You can perform aggregations on the groups using the following methods:
avg()
count()
max()
min()
sum()
To filter grouped results, use the having()
method.
Notes:
group()
method once per aggregate query.
Field or fields to group on.
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 group stage to the aggregation pipeline.
The group()
method adds a pipeline stage that groups items by specified fields and calculates aggregate values. You can configure the grouping by chaining one or more groupStage
methods.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.