Skip to content

Lists

Six boxes for working on collections — typically the array an API has just returned.

Reduces a list to a single value.

Inputsitems (json)
Outputsresult
Configurationop: count, sum, min, max, average, join — plus field (the property to aggregate) and separator (for join)
Requête HTTP ──response[body.commandes]──► Aggregate (sum, field: montant)

Transforms each element of a list.

Inputsitems
Outputsmapped (json)
Configurationproperty (extract a property) or expression (a Handlebars template applied to each element)

Splits a list in two.

Inputsitems
Outputskept (json), rejected (json)
Configurationproperty, operator (lt, lte, eq, gte, gt, ne, contains), value

Both outputs are useful: wire rejected onto an Assert to fail the run if unexpected elements turn up.

Inputslist (a list), one default value, plus one port per configured value
Outputsresult (json)
Configurationlist (a variable-typed value, or wired), values (the elements to add), updateSourceVariable (default false)

With updateSourceVariable enabled, the box writes directly into the run variable designated: that is how you accumulate results through a loop.

Same shape as the previous one; removes the elements that are deeply equal to those supplied.

The structural operations.

Inputsvalue (a list), key (a string)
Outputsresult
opEffectFields
sortSortskey, order (asc / desc)
uniqueDe-duplicates
reverseReverses
flattenFlattensdepth (default 1)
chunkCuts into chunkssize
sliceExtracts a portionstart, end
groupByGroups by keykey