0
votes

My project has cloud functions already running (pub/sub triggers) and a Firestore Database, too. For the first time, I want to trigger a simple Google Cloud Function as soon as a new document is created in a specific collection ("Users").

I cannot find how to upload these functions on Google Cloud Console or Firebase Console. The only types allowed and displayed are:

  • HTTP trigger
  • Cloud Pub/Sub topic
  • Cloud Storage bucket

How do I upload my Firestore Functions?

1

1 Answers

2
votes

Uploading Cloud Functions for Firebase is done through the Firebase command-line tools. I recommend that you follow the getting started guide, which walks you through the process.

To learn how to write Cloud Functions triggered through Firestore, have a look at the documentation on using Cloud Firestore triggers in Cloud Functions, or the documentation on extending Cloud Firestore with Cloud Functions.