Relative Content

Tag Archive for node.jsgoogle-cloud-firestoregoogle-cloud-functions

Firestore get function is not working, “is not a function” error

I’m new to firestore cloud functions. I’m trying to write a function that based on the change of one collection should be updated the data of another collection. I’m facing an issue on using the get function. It return “Exception from a finished function: TypeError: aggr_ingredient.data is not a function”. Can you check my code and point me out what I’m doing wrong?

Failed to load function definition from source: FirebaseError

I using firestore for study functions so when i went run that aplication appear this error, if this important, i use npx
“Failed to load function definition from source: FirebaseError: Functions codebase could not be analyzed successfully. It may have a syntax or runtime error”