aggregate

abstract fun <G : Any> aggregate(query: AggregationQuery, groupType: Class<G>): Flow<G>

The groups of query, each decoded as groupType: a class of its groups and metrics, or a Map. Experimental, as the aggregation protocol is.