DynamicWhere.ex
DynamicWhere.exv2.1.0·docs

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" }
  ]
}