Transform
| Node | Description | Inputs | Outputs |
|---|---|---|---|
| chunk | Splits an array into chunks of a given size. | data Json, size Number | result Json |
| count | Counts elements matching a condition. | data Json, expression Text | result Number |
| filter | Filters an array by a boolean expression. | data Json, expression Text | result Json |
| find | Returns the first array element matching an expression. | data Json, expression Text | result Any |
| group_by | Groups array elements by a key. | data Json, key Text | result Json |
| map | Applies an expression to each element of an array. | data Json, expression Text | result Json |
| pluck | Extracts a single property from each object in an array. | data Json, key Text | result Json |
| reduce | Reduces an array to a single value using an expression. | data Json, expression Text, initial Any | result Any |
| sort | Sorts an array. | data Json, key Text, descending Boolean | result Json |
| zip | Combines two arrays element-wise into an array of pairs. | a Json, b Json | result Json |
chunk
Splits an array into chunks of a given size.
Inputs:
data(Json) — array to splitsize(Number) — elements per chunk
Output: result (Json) — array of sub-arrays
count
Counts elements matching a condition.
Inputs:
data(Json) — array to count inexpression(Text) — JS boolean expression (item, index)
Output: result (Number) — number of matching elements
filter
Filters an array by a boolean expression.
Inputs:
data(Json) — array to filterexpression(Text) — JS boolean expression (item, index)
Output: result (Json) — elements where expression is true
Example: data = [-1,2,-3,4], expression = item > 0 → [2,4]
find
Returns the first array element matching an expression.
Inputs:
data(Json) — array to searchexpression(Text) — JS boolean expression (item, index)
Output: result (Any) — first matching element or null
group_by
Groups array elements by a key.
Inputs:
data(Json) — array of objectskey(Text) — property to group by
Output: result (Json) — object of grouped arrays
map
Applies an expression to each element of an array.
Inputs:
data(Json) — array to iterate overexpression(Text) — JS expression (item, index available)
Output: result (Json) — transformed array
Example: data = [1,2,3], expression = item * 2 → [2,4,6]
See also: filter, reduce, pluck
pluck
Extracts a single property from each object in an array.
Inputs:
data(Json) — array of objectskey(Text) — property name to extract
Output: result (Json) — array of extracted values
reduce
Reduces an array to a single value using an expression.
Inputs:
data(Json) — array to reduceexpression(Text) — JS expression (acc, item, index)initial(Any) — starting accumulator value
Output: result (Any) — accumulated result
Example: data = [1,2,3], expression = acc + item, initial = 0 → 6
sort
Sorts an array.
Inputs:
data(Json) — array to sortkey(Text) — object key to sort by (empty = value)descending(Boolean) — reverse order if true
Output: result (Json) — sorted array
zip
Combines two arrays element-wise into an array of pairs.
Inputs:
a(Json) — first arrayb(Json) — second array
Output: result (Json) — array of [a[i], b[i]] pairs