π»Writing Your First Aggregation
A guide to writing your first aggregation
{
"groupby" : [
{"name": <alias>,
"field": <field in the collection>, "agg": "category"},
{"name": <alias>,
"field": <another groupby field in the collection>,
"agg": "numeric"}
],
"metrics" : [
{"name": <alias>,
"field": <numeric field in the collection>,
"agg": "avg"}
{
"name": <alias>,
"field": <another numeric field in the collection>,
"agg": "max"}
]
}
Last updated
Was this helpful?