Skip to Content

Workflow.map()

The .map() method maps output data from a previous step to the input of a subsequent step, allowing you to transform data between steps.

Usage example

workflow.map(async ({ inputData }) => `${inputData.value} - map`

Parameters

mappingFunction:

(params: { inputData: any }) => any
Function that transforms input data and returns the mapped result

Returns

workflow:

Workflow
The workflow instance for method chaining