Skip to main content
@tags: aggregation, group-by, count, statistics, analytics, grouping, distribution

Group by Properties

GROUP_BY returns count summaries for each unique combination of the specified properties, useful for analytics and data distribution analysis.

Syntax

  • Output:

Example 1: Group users by age

  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK:

Aggregate by Properties

AGGREGATE_BY returns the full data objects grouped by the specified properties, providing both count and the actual grouped elements for detailed analysis.

Syntax

  • Output:

Example 1: Aggregate users by age and email domain

  • Schema:
  • Query:
  • cURL:
  • Python SDK:
  • TypeScript SDK: