# Merge objects

Merge objects Combines two objects using a shallow JavaScript property spread. Useful for adding fixed metadata to a decoded event or replacing selected top-level fields. Sockets and configuration - a (object): default {} when unwired. - b 

Canonical URL: https://opennodeflow.dev/wiki/reference-app-core-core-merge/
JSON reference: https://opennodeflow.dev/wiki/reference-app-core-core-merge/index.json
Source snapshot: 2026-10-23

# Merge objects

Combines two objects using a shallow JavaScript property spread. Useful for adding fixed metadata to a decoded event or replacing selected top-level fields.

## Sockets and configuration
- **a** (object): default {} when unwired.
- **b** (object): default {} when unwired.
- **result** (object): `{ ...a, ...b }`, with each falsy operand treated as {} by the body.
- No configuration schema or control sockets.

## Example
For a `{"region":"example","limit":10}` and b `{"limit":20,"enabled":true}`, result is `{"region":"example","limit":20,"enabled":true}`. The second object wins on duplicate keys. Nested objects are replaced as whole values; this is not recursive merging, concatenation, schema validation or conflict detection.

## Execution and boundaries
Both wired upstream data dependencies must finish before execution. If a wired source is skipped or does not supply its connected output, Merge skips rather than falling back to {}. Defaults apply to unwired inputs, not missing connected outputs. There is no control gate or next route, so wire its result to a consumer to order that consumer after the merge.

The body does not mutate the input objects at the top level or write durable state, and performs no logging, secret access or external I/O. All fields you include become ordinary output/history data. To preserve deeper structures or reject duplicate keys, implement an explicit merge policy in a custom node and validate against a suitable custom type.

## Catalog identity

| Field | Value |
| --- | --- |
| Source key | `app.core.core.merge` |
| Kind | node |
| Family | app-core |
| Pack | See library discovery |

[Integration guide](/wiki/first-workflow/) · [Browse the catalog](/wiki/integration-catalog/)

## Inputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `a` | Object A | object | No |  |
| `b` | Object B | object | No |  |

## Outputs

| Socket ID | Label | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `result` | Result | object | No |  |

## Configuration schema


```json
{}
```





## Source and installed versions

This reference describes the maintained source catalog snapshot, not a live export of your installation. Published definitions use immutable versions; installed graphs retain their exact pins. Discover and read the installed definition and selected version before wiring it. See [versioning](/wiki/versioning/), [connections](/wiki/connections/) and [integration setup](/wiki/integration-setup/).

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/catalog-all.mjs`
- `../OpenNodeFlow-Library/work/azure-pack-consolidation-20261022/catalog-policy.mjs`
- `../OpenNodeFlow-Library/work/developer-packs-20261022/catalog.mjs`
- `shared/seed.ts`
- `shared/storage-library.ts`
- `shared/variable-library.ts`
- `shared/control-flow.ts`
- `shared/remote-routes.ts`
- `server/runtime-library.ts`
- `shared/error-library.ts`
- `shared/storage-model.ts`
- `shared/builtin-documentation.ts`

This page describes maintained source, not a live inventory or an authorization to perform actions.
