I am trying to schedule a function to run based on DateTime
object field in my Firestore database.
Example, I have a collection of events in the Database and each event has a DateTime field (Start time) for the start of the event. The event also has a list of users that are subscribed to the event.
Is there a way to use Cloud Functions to notify the subscribed users that the event is about to start at the start time of the event or 5 or 10 mins before the event starts?
I am currently using Cloud Functions for notification and its working fine but that is based writes to specific portions of the database, not time event.
Thank you in advance.