Expand description
The aggregate document Table::aggregate takes through a binding, and the shape it answers in.
Functionsยง
- aggregate_
result_ to_ json { count, sum, avg, min, max }, the maps keyed by field name in name order.- grouped_
aggregate_ result_ to_ json [{ key, result }], one entry per distinct value of the grouped field, in value order.- parse_
aggregate { count?, sum?: string[], avg?, min?, max?, groupBy?: string }. An absent document asks for the default aggregate (just the count).