Aggregation¶
Examples of aggregation operations.
const totalRevenue = orders.sum('total');
const avgOrderValue = orders.sum('total') / orders.length;
const byStatus = orders.groupBy('status');
Examples of aggregation operations.
const totalRevenue = orders.sum('total');
const avgOrderValue = orders.sum('total') / orders.length;
const byStatus = orders.groupBy('status');