Skip to content
OpenNodeFlow.DocsOpen beta ↗
Agent guide ↗
Docs/Library asset reference

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

23 Oct 2026 · 2 min read
Markdown ↗JSON ↗

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#

FieldValue
Source keyapp.core.core.merge
Kindnode
Familyapp-core
PackSee library discovery

Integration guide · Browse the catalog

Inputs#

Socket IDLabelTypeRequiredMeaning
aObject AobjectNo
bObject BobjectNo

Outputs#

Socket IDLabelTypeRequiredMeaning
resultResultobjectNo

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, connections and integration setup.

Source provenance

Reviewed against maintained source and topic documentation on 23 October 2026. This is a source snapshot; installed versions and provider access may differ.

  • ../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
Type to search the documentation.
↑ ↓ to navigate · Enter to openAgent map ↗