Group Results by Property Values
GROUP_BY organizes query results into groups based on one or more property values, returning count summaries for each unique combination.GROUP_BY returns only the count summaries for each unique combination of the specified properties. This is ideal for analytics, distribution analysis, and understanding data patterns without returning full objects.
Example 1: Group users by country
Example 2: Group users by multiple properties (country and city)
Example 3: Count users per country using COUNT with GROUP_BY
Related Topics
Aggregations
Aggregate results with full data objects
Grouping Guide
When to use GROUP_BY vs AGGREGATE_BY
COUNT Operation
Count operation and other result operations
Property Access
Property filtering and access patterns