# How to add information ( username, birthday, date...) to mongodb from function of node-red. Pls help me

**URL:** <https://discourse.nodered.org/t/how-to-add-information-username-birthday-date-to-mongodb-from-function-of-node-red-pls-help-me/54495>\
**Category:** General\
**Tags:** database\
**Created:** [30 November 2021 05:50 UTC](https://discourse.nodered.org/t/how-to-add-information-username-birthday-date-to-mongodb-from-function-of-node-red-pls-help-me/54495 "2021-11-30T05:50:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anh](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@Anh](https://discourse.nodered.org/u/Anh)\
**Post date:** [30 November 2021 05:50 UTC](https://discourse.nodered.org/t/how-to-add-information-username-birthday-date-to-mongodb-from-function-of-node-red-pls-help-me/54495/1 "2021-11-30T05:50:46Z")

</div>

I don't know how about add information to mongodb. Help me

---

<div class="post-metadata">

**Author:** ![UnborN](https://avatars.discourse-cdn.com/v4/letter/u/4491bb/32.png) [@UnborN](https://discourse.nodered.org/u/UnborN)\
**Post date:** [30 November 2021 19:30 UTC](https://discourse.nodered.org/t/how-to-add-information-username-birthday-date-to-mongodb-from-function-of-node-red-pls-help-me/54495/2 "2021-11-30T19:30:46Z")

</div>

Hello Anh,

What Mongodb node have you tried ?

I used the [node-red-node-mongodb (node) - Node-RED](https://flows.nodered.org/node/node-red-node-mongodb) set of nodes with success.  
(which is the most recently updated)

You just send a `msg.payload` with the collection Document to a `mongodb out` node set to

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d16ea3581ed14155f8e532528a65624ceb7357e9.png)

and thats it 😉

The nodes Help file explains everything in detail.

if you have any problem, share the flow of what you have tried so we can try to help further

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 January 2022 19:31 UTC](https://discourse.nodered.org/t/how-to-add-information-username-birthday-date-to-mongodb-from-function-of-node-red-pls-help-me/54495/3 "2022-01-29T19:31:32Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
