Skip to content

Aggregate

The "aggregate" transform is currently minimal – it adds a new count field that contains the number of data items in a group. More aggregate operations will be added later.

Warning

The parameterization will change in the future to support other aggregate operations.

Parameters

groupby

Type: array

Which fields to use for grouping. Missing groupby results in a single group that includes all the data items.

Example

Given the following data:

x y
first 123
first 456
second 789

... and configuration:

{
  "type": "aggregate",
  "groupby": ["x"]
}

A new list of data objects is created:

x count
first 2
second 1