Update subcollection field in Firestore

Hi,

In firestore, I have a collection called “Alerts” with a subcollection “photos” (with field photo_path)

I’d like to update only the field “photo_path” of a photo in the subcollection

Can I use the id of the document of the subcollection ?

Thank you

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Sorry here are the information

n8n version : 1.26.0
Database : Firebase
Running n8n via Docker

Can I use the id of the document of the subcollection ?

Hi @romeo_roy, I am not sure about this unfortunately, but I’d suspect this one might fail - perhaps you want to simply test it against a dummy collection to avoid accidentally updating any production data?

Let me know if you run into any trouble with this!

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