Reputation: 725
It is possible to trigger cloud functions on write events, but I can't find any documentation for triggering after reading (eg, firebase.database().ref().once('value')...
).
Any recommendations on the best way to go about handling this use case?
Upvotes: 6
Views: 2114
Reputation: 317322
There is no trigger for responding to client reads. It's assumed that apps will have massive amounts of reads, and having code run for each of those reads would be incredibly expensive. If you want to run some code when the client performs some action, have the client call an HTTPS function when that action should occur.
Upvotes: 10