GCloud Function not firing after Firestore Create

Viewed 451

I've deployed a function to gcloud using the following command line script:

gcloud functions deploy my_new_function --runtime python37 \
--trigger-event providers/cloud.firestore/eventTypes/document.create \
--trigger-resource projects/my_project_name/databases/default/documents/experiences/{eventId}

This worked successfully, and my function was deployed. Here is what I expected to happen as a result:

Any time a new document was created within the experiences firestore collection, the function my_new_function would be invoked.

What is actually happening:

my_new_function is never being invoked as a result of a new document being created within experiences

Trigger

database

code

1 Answers
Related