Premium
Aggregations
An opt-in per-resource endpoint returning server-side count / sum / avg / min / max,
optionally grouped by a field value, a date bucket or a numeric range.
It reuses the list's filter backend, so every filter valid on /admin/<resource> is valid on
/admin/<resource>/aggregate too — a chart and the list beneath it can be driven by one filter
set.
Pages
| Page | What it covers |
|---|---|
| Enabling the aggregate endpoint | Turning it on for a resource |
| Field aggregation whitelist | Which fields may be aggregated and grouped |
| Querying the endpoint | The request and response format |
| Extending aggregate functions | Adding a function of your own |
caution
The feature is off by default and every field has to be whitelisted explicitly. The whitelist is not a convenience — it is what keeps a caller from aggregating over columns you never meant to expose.
See also
- Dashboard — the flags a resource needs to appear in widgets
- Dashboard widgets — which widget types need this endpoint
- Filtering and searching — the filters this shares