Search code examples
firebasefirebase-realtime-databasegoogle-cloud-firestorezapier

How to push new data from Realtime Database to Cloud Firestore?


I am pushing data to Firebase via Zapier and it lands in the Realtime Database. However, I am using Cloud Firestore. I've looked through a lot of documentation for both services but neither seems to have answers.. (there is information on migrating but I would like to keep both DBs).

How would I push each new or updated data entry from Realtime Database to Cloud Firestore?


Solution

  • There is nothing built into Firebase to automatically do this.

    The fastest I can think of is to build a Cloud Function that listens for the Realtime Database writes, and then also sends them to Firestore.

    Alternatively, doesn't Zapier allow you to have two zaps, one that writes to each database?