Building flows
Transform
Reshape upstream data into a new output object.
The transform node maps fields from earlier nodes into a new output object for the next step.
Spec
| Field | Meaning |
|---|---|
mappings | Required. An array of field mappings from upstream to output. |
mappings[].from | Source path, such as trigger.repo. |
mappings[].to | Target field name in the output object. |
mappings[].expression | Optional. A transform expression applied to the source value. |
{
"slug": "shape",
"type": "transform",
"spec": {
"mappings": [
{ "from": "trigger.repo", "to": "repository" },
{ "from": "trigger.action", "to": "event" }
]
}
}Each mapping reads the value at from and writes it to to on the output object.
