A per-group aggregate declaration, materialised as a top-level field on the flat result record
Query.aggregate produces and orderable via a following orderBy(Order.property(name)). Name it
via the record passed to Query.aggregate({ name: Aggregate.max('created') }).
T is the query's element type (so a reduced/grouped property is checked against it); V is the
value the aggregate produces. group entries define the grouping keys; a record with no
group entries aggregates the entire input into a single row.
A per-group aggregate declaration, materialised as a top-level field on the flat result record
Query.aggregateproduces and orderable via a followingorderBy(Order.property(name)). Name it via the record passed toQuery.aggregate({ name: Aggregate.max('created') }).Tis the query's element type (so a reduced/grouped property is checked against it);Vis the value the aggregate produces. group entries define the grouping keys; a record with nogroupentries aggregates the entire input into a single row.