Reputation: 19
I am developing mobile app with flutter framework in which I am using Firestore database and Firebase cloud functions. I have successfully implemented both in my project. However, I have some difficulties understanding how to run functions that are independent from my app. For example, if I have a Firestore database of 100 people and want to calculate average user age for my own analysis. I know that I can call the function calculateAverageAge() from my app, however is there a way to call this function without adding it in my app's code? Should I create a separate project (possibly in different language) and call those functions from there or I can somehow trigger this function from firebase website? Not sure what is the the right approach here.
Hopefully that makes sense.
Thanks!
Upvotes: 0
Views: 88
Reputation: 599996
In general there are three common ways to trigger a function:
For your example of calculating the average age of your users, this means that you could combine the last two types and:
Upvotes: 1