The Firebase database is bundled with lots of events, and for our Cloud Functions to function properly we're going to exploit a set of these functions that will make our lives much simpler.
As a use case, we're going to see how we can integrate Firebase Cloud Functions within an Online store. The function job here is to listen to any new-made unfinished purchase and set its status to pending state.
So, let's get to it!