The DocumentDB API supports low-latency aggregation at any scale through aggregate functions COUNT, MIN, MAX, AVG, and SUM through the SQL grammar.