Map
Map changes each item in a list into a new shape.
Screenshot placeholder
When to use it
Use it to turn a list of items into a list of simpler or differently named items. In the palette it is described as "Map / project items".
Settings
The Map settings form is shared with other data nodes. For Map it shows a single field.
| Field | What it does | Notes |
|---|---|---|
| Output key | Where the mapped result is saved | A new node starts with mapped. If empty, the form shows result |
A new Map node is created with an input of {{ output.items }} and a transform of { "id": item.id, "name": item.name }. These are stored on the node, but the settings panel does not show fields to edit them. The product's Expression and Input key fields do not appear for Map.
Inputs and outputs
- Input: one connection at the top.
- Output: one connection at the bottom. The card is labelled with the operation name.
Example
Illustrative. With the default setup, a list of people with many fields becomes a list of items that each keep only id and name.
Tips
- Use Output key to give the result a clear name.
- If you need to rework data in a way the Map panel does not offer, use a Code node.