Object Operations
Overview
The Object Operations node provides in-memory transformations on data objects — pure JavaScript operations without database access. It handles field selection, renaming, merging, flattening nested structures, and more.
Category
Data — data/objectOps
Operations
| Operation | Description |
|---|---|
| pick | Keep only specified fields |
| omit | Remove specified fields |
| rename | Rename fields using a mapping |
| flatten | Convert nested objects to flat key paths (user.name → user.name) |
| unflatten | Convert flat key paths back to nested objects |
| merge | Combine with data from a second input |
| defaults | Fill missing fields with default values |
| diff | Compare two objects and return differences |
| set | Set a nested field to a value |
| unset | Remove nested fields |
| entries | Convert object to key-value pair array |
| fromEntries | Convert key-value pair array to object |
| keys / values / has | Utility operations |
Settings
| Setting | Type | Default | Description |
|---|---|---|---|
| operation | String | pick | Which operation to perform |
| fields | Array | [] | Field names for pick/omit/has |
| renames | Object | {} | Rename mapping: { oldName: 'newName' } |
| delimiter | String | . | Delimiter for flatten/unflatten |
| deep | Boolean | false | Deep merge/flatten mode |
Inputs & Outputs
- input1 — Primary data
- input2 — Secondary data (for merge/diff operations)
- output1 — Transformed data