Thursday, 17 January 2019

mongoDB Time-field Trigger?

I have a node based back-end that integrates with a mongoDb instance. The DB has a collection of calendar events, each with a unique date-time field. I am trying to consider the best way to perform a reminder function 15 minutes before the set time.

The only idea i have come up with is to consistently query the DB with setInterval and run the function then. Is there a better way?



from mongoDB Time-field Trigger?

No comments:

Post a Comment