Hello there! As a newcomer to MongoDB and the world of web development, I have a question that I hope you can help me with. I am looking to send out emails based on the time difference between the current time and the event time stored in the event model as a standard attribute.
The event time is saved as eventDate: Date
, which is a JavaScript date object.
Do you have any recommendations on the best approach to achieve this? I was thinking of setting up a kind of watcher that compares the current time with the event time, but I'm not entirely sure. Any guidance you can provide would be greatly appreciated.
Thanks in advance for your help!