# Issue with mongodb find and update node

**URL:** <https://community.n8n.io/t/issue-with-mongodb-find-and-update-node/84543>\
**Category:** Questions\
**Tags:** node\
**Created:** [March 5, 2025, 9:34am UTC](https://community.n8n.io/t/issue-with-mongodb-find-and-update-node/84543 "2025-03-05T09:34:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kishorekayam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/kishorekayam/32/58385_2.png) [@kishorekayam](https://community.n8n.io/u/kishorekayam)\
**Post date:** [March 5, 2025, 9:34am UTC](https://community.n8n.io/t/issue-with-mongodb-find-and-update-node/84543/1 "2025-03-05T09:34:02Z")

</div>

## I am unable to update the data in the mongodb can you please assist me?

```auto
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

```

## Share the output returned by the last node

## Information on your n8n setup

- \*\*n8n version:\*\*1.81.4
- \*\*Database (default: SQLite):\*\*Mon  
 ![Screenshot 2025-03-05 145807](https://europe1.discourse-cdn.com/n8n/original/3X/9/a/9a500abb4c4ad3cb99b079b5b3826c43ffca7016.png)  
godb
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** self hosting
- \*\*Operating system:\*\*windows

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hrishikesh/32/59763_2.png) [@hrishikesh](https://community.n8n.io/u/hrishikesh)\
**Post date:** [March 5, 2025, 10:34am UTC](https://community.n8n.io/t/issue-with-mongodb-find-and-update-node/84543/2 "2025-03-05T10:34:18Z")

</div>

This is how you can do it:

Basically, you should make sure your node connected as an input to MongoDB node returns the data that you wish to update along with the identifier (usually `Id`) to use to find the document.

In my example, I have a field name `_id` which has the `id` of each item. I am using n8n to find the document using that `id` and then return add the field (`storeLocation`) that I wish to update.

---

<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:** [June 3, 2025, 10:34am UTC](https://community.n8n.io/t/issue-with-mongodb-find-and-update-node/84543/3 "2025-06-03T10:34:20Z")

</div>

Closed on June 3, 2025, 10:34am UTC

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