Transform

NodeDescriptionInputsOutputs
chunkSplits an array into chunks of a given size.data Json, size Numberresult Json
countCounts elements matching a condition.data Json, expression Textresult Number
filterFilters an array by a boolean expression.data Json, expression Textresult Json
findReturns the first array element matching an expression.data Json, expression Textresult Any
group_byGroups array elements by a key.data Json, key Textresult Json
mapApplies an expression to each element of an array.data Json, expression Textresult Json
pluckExtracts a single property from each object in an array.data Json, key Textresult Json
reduceReduces an array to a single value using an expression.data Json, expression Text, initial Anyresult Any
sortSorts an array.data Json, key Text, descending Booleanresult Json
zipCombines two arrays element-wise into an array of pairs.a Json, b Jsonresult Json

chunk

Splits an array into chunks of a given size.

Inputs:

Output: result (Json) — array of sub-arrays

count

Counts elements matching a condition.

Inputs:

Output: result (Number) — number of matching elements

filter

Filters an array by a boolean expression.

Inputs:

Output: result (Json) — elements where expression is true

Example: data = [-1,2,-3,4], expression = item > 0[2,4]

See also: map, find, count

find

Returns the first array element matching an expression.

Inputs:

Output: result (Any) — first matching element or null

group_by

Groups array elements by a key.

Inputs:

Output: result (Json) — object of grouped arrays

map

Applies an expression to each element of an array.

Inputs:

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:

Output: result (Json) — array of extracted values

reduce

Reduces an array to a single value using an expression.

Inputs:

Output: result (Any) — accumulated result

Example: data = [1,2,3], expression = acc + item, initial = 06

See also: map, filter

sort

Sorts an array.

Inputs:

Output: result (Json) — sorted array

zip

Combines two arrays element-wise into an array of pairs.

Inputs:

Output: result (Json) — array of [a[i], b[i]] pairs