# MongoDB node

**URL:** <https://community.n8n.io/t/mongodb-node/200785>\
**Category:** Questions\
**Created:** [October 6, 2025, 8:55pm UTC](https://community.n8n.io/t/mongodb-node/200785 "2025-10-06T20:55:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ozz123](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ozz123/32/67333_2.png) [@Ozz123](https://community.n8n.io/u/Ozz123)\
**Post date:** [October 6, 2025, 8:55pm UTC](https://community.n8n.io/t/mongodb-node/200785/1 "2025-10-06T20:55:17Z")

</div>

## Describe the question

Is it possible to append data in MongoDB using the node?

Say I have inserted the following entry in my database

{  
“\_id”: {  
“$oid”: “68e3b50812d86c5e8fc4ba8a”  
},  
“phone\_number”: “123456789”,  
“exchanges”: [  
{  
“user”: “Hi”,  
“assistant”: “Hi! What would you like to discuss today?”,  
“ts”: “06/10/25 14:24”  
}  
]  
}

Now I want to append this entry so that when the user sends another message and gets a reply back it will be saved as

{  
“\_id”: {  
“$oid”: “68e3b50812d86c5e8fc4ba8a”  
},  
“phone\_number”: “123456789”,  
“exchanges”: [  
{  
“user”: “Hi”,  
“assistant”: “Hi! What would you like to discuss today?”,  
“ts”: “06/10/25 14:24”  
},

{  
“user”: “2nd message”,  
“assistant”: “2nd reply”,  
“ts”: “2nd timestamp”  
}  
]  
}

Would this be possible to do with the MongoDB node or do I need something else?

## Please share your workflow

## Share the output returned by the last node

I’ve been trying to get it to work for over 2 weeks now with the help of chatpt so I have way too many error codes etc that I have accumulated over the past 2 weeks lol

## Information on your n8n setup

- **n8n version: Self hosted (should be the most recent one)**
- **Database : MongoDB**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main): idk?**
- **Running n8n via (Docker, npm, n8n cloud, desktop app): selfhosted**
- **Operating system: Windows**

---

<div class="post-metadata">

**Author:** ![YehorKardash](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yehorkardash/32/60621_2.png) [@YehorKardash](https://community.n8n.io/u/YehorKardash)\
**Post date:** [October 16, 2025, 11:09am UTC](https://community.n8n.io/t/mongodb-node/200785/2 "2025-10-16T11:09:12Z")

</div>

Hello @Ozz123, you can use `Update Documents` operation in the MongoDB node.  
Something like that

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [January 14, 2026, 11:09am UTC](https://community.n8n.io/t/mongodb-node/200785/3 "2026-01-14T11:09:13Z")

</div>

Closed on January 14, 2026, 11:09am UTC

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