PreCollection.aggregate

SELECTs aggregate data for the requested entities from the database

DBValue maxHeight = em.find!Mountain().aggregateVia(AggregateFunction.max, "height", db);

Meta