flatMap¶
Flatten an array field into separate messages, each containing a single element of the array.
Parameters¶
| Parameter | Type | Description |
|---|---|---|
field |
string | Path to the array field to be flattened (e.g., {{row.samples}}). |
dest |
string | Optional name of the field to store the flattened element (defaults to the same field name). |
keep |
bool | If true, keep the original array alongside the flattened messages. |
Example¶
Given an input message:
The step emits three messages: