# Join the Data coming from different sources into one Single Object to push to MongoDB

**URL:** <https://discourse.nodered.org/t/join-the-data-coming-from-different-sources-into-one-single-object-to-push-to-mongodb/17427>\
**Category:** General\
**Created:** [2 November 2019 06:50 UTC](https://discourse.nodered.org/t/join-the-data-coming-from-different-sources-into-one-single-object-to-push-to-mongodb/17427 "2019-11-02T06:50:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M-M-Labhe](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m-m-labhe/32/1719_2.png) [@M-M-Labhe](https://discourse.nodered.org/u/M-M-Labhe)\
**Post date:** [2 November 2019 06:50 UTC](https://discourse.nodered.org/t/join-the-data-coming-from-different-sources-into-one-single-object-to-push-to-mongodb/17427/1 "2019-11-02T06:50:38Z")

</div>

Good Morning,

 ![Join%20the%20Data%20in%20a%20single%20object](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/3b79472b82a56980f4b7ab0f33a6fff59e7512c1.png)

I have a array of numbers coming from a device.  
I have an array of Objects coming from a HTTP request as a response and I want to merge these two data into a single object and Append the timestamp with it to push it to a Mongo database in a different collection.

How can this be accomplished?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 November 2019 07:04 UTC](https://discourse.nodered.org/t/join-the-data-coming-from-different-sources-into-one-single-object-to-push-to-mongodb/17427/2 "2019-11-02T07:04:54Z")

</div>

You can use a Join node set to generate key/value pairs to get a single message containing both sets of data. I think there is an example in the node red cookbook but can't look it up at the moment.
