Example 6: Group — GroupBy with Aggregations
A GroupBy carrying one or more AggregateBy entries, passed to Group<T>.
Payload
{
"fields": ["Category"],
"aggregateBy": [
{ "field": null, "alias": "TotalCount", "aggregator": "Count" },
{ "field": "Price", "alias": "AvgPrice", "aggregator": "Average" },
{ "field": "Price", "alias": "MaxPrice", "aggregator": "Maximum" }
]
}Related
- Group extension
- Aggregator enum
- GroupBy validation rules
- Summary example — same shape inside a full where → group → having pipeline.