{
  "schemaVersion": 1,
  "snapshotDate": "2026-10-23",
  "slug": "reference-app-core-core-merge",
  "title": "Merge objects",
  "section": "Library asset reference",
  "description": "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 ",
  "kind": "node",
  "url": "/wiki/reference-app-core-core-merge/",
  "markdown": "/wiki/reference-app-core-core-merge/index.md",
  "json": "/wiki/reference-app-core-core-merge/index.json",
  "headings": [
    {
      "id": "sockets-and-configuration",
      "title": "Sockets and configuration",
      "depth": 2
    },
    {
      "id": "example",
      "title": "Example",
      "depth": 2
    },
    {
      "id": "execution-and-boundaries",
      "title": "Execution and boundaries",
      "depth": 2
    },
    {
      "id": "catalog-identity",
      "title": "Catalog identity",
      "depth": 2
    },
    {
      "id": "inputs",
      "title": "Inputs",
      "depth": 2
    },
    {
      "id": "outputs",
      "title": "Outputs",
      "depth": 2
    },
    {
      "id": "configuration-schema",
      "title": "Configuration schema",
      "depth": 2
    },
    {
      "id": "source-and-installed-versions",
      "title": "Source and installed versions",
      "depth": 2
    }
  ],
  "sources": [
    "../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"
  ],
  "family": "app-core",
  "contract": {
    "key": "app.core.core.merge",
    "slug": "app-core-core-merge",
    "name": "Merge objects",
    "kind": "node",
    "family": "app-core",
    "packId": null,
    "category": "Data",
    "description": "",
    "inputs": [
      {
        "id": "a",
        "name": "Object A",
        "type": "object",
        "typeName": "Object",
        "required": false,
        "default": {}
      },
      {
        "id": "b",
        "name": "Object B",
        "type": "object",
        "typeName": "Object",
        "required": false,
        "default": {}
      }
    ],
    "outputs": [
      {
        "id": "result",
        "name": "Result",
        "type": "object",
        "typeName": "Object",
        "required": false
      }
    ],
    "configSchema": {},
    "documentation": "# Merge objects\n\nCombines two objects using a shallow JavaScript property spread. Useful for adding fixed metadata to a decoded event or replacing selected top-level fields.\n\n## Sockets and configuration\n- **a** (object): default {} when unwired.\n- **b** (object): default {} when unwired.\n- **result** (object): `{ ...a, ...b }`, with each falsy operand treated as {} by the body.\n- No configuration schema or control sockets.\n\n## Example\nFor 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.\n\n## Execution and boundaries\nBoth 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.\n\nThe 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.",
    "tags": [
      "builtin",
      "node"
    ],
    "source": "app-builtin-catalog"
  }
}
