Skip to main content

Module aggregate

Module aggregate 

Source
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).