This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Refines a WixDataAggregate
to contain the item count of each group in the aggregation.
The count()
method refines a WixDataAggregate
contains the item count in each of the aggregate's groups.
When the aggregation is run()
, the returned WixDataAggregateResult
object contains items with the following additional key:value pair:
count
. You can set a custom key using the projectedField
parameter.Note: Aggregations can only be used on collections you have created. They cannot be used on Wix app collections.
Field in the aggregation results that contains the count value. Default: count
.