I have a service configured that calls data from my database upon booting up my NodeJS server. The problem is, since the findOne calls (with mongoose) are asynchronous, it doesn't return the objects in time, so I'm left with empty objects. Is there a way to load this data synchronously?Thanks
Submitted September 12, 2018 at 05:32PM by lc929
No comments:
Post a Comment