How do I update a document on my google firestore using the firestore db node

Describe the problem/error/question

I’m trying to update an existing Firestore document in n8n using the Firestore “Create or Update” (upsert) operation, but instead of updating the existing document, a new document keeps getting created. I am using the service account for authentication.

What is the error message (if any)?

No error message

Please share your workflow


I need a way to update my Firestore document, but I am unable to find any. Someone please help…

Information on your n8n setup

  • n8n version: 1.118.2
  • Database (default: SQLite): postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker self-host
  • Operating system: Linux VM

Finally Got the answer !!!

Had to use the key from the key:value pairs coming in as input to the node.
so I had the DocumentID coming in as _id, and when I use that in the update key it worked.

Sample Screenshot of the working solution.

1 Like

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