# The emerge node, built via Node-Maker

**URL:** https://discourse.nodered.org/t/the-emerge-node-built-via-node-maker/71023
**Category:** Share Your Nodes
**Created:** [21 November 2022 22:45 UTC](https://discourse.nodered.org/t/the-emerge-node-built-via-node-maker/71023 "2022-11-21T22:45:17Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![Steveorevo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steveorevo/32/33290_2.png) [@Steveorevo](https://discourse.nodered.org/u/Steveorevo)
#### Post date: [27 November 2022 18:30 UTC](https://discourse.nodered.org/t/the-emerge-node-built-via-node-maker/71023/13 "2022-11-27T18:30:53Z")

</div>

Your example is a perfect _ **bug** _ of what it's failing to do! Thank you for your feedback. The problem there is that it's doing a shallow merge; that is to say msg.payload is getting overwritten with a single property each time. Therefore the internal buffer is only containing _msg.payload.first\_name_ _ **or** _ _msg.payload.last\_name_ but not (Schrödinger's cat aside) both at the same time.

Had it been (sans payload) _msg.first\_name_ and _msg.last\_name_ that would have worked.

I've now implemented a **deep merge** routine that should provide the expected results and will now work with your example. Please see node-red-emerge version 1.2.0.

Thank you for your feedback!

---

_[View the full topic](https://discourse.nodered.org/t/the-emerge-node-built-via-node-maker/71023)._
