Closed chrisleee closed 7 years ago
An example of something similar I did for a previous side project is here: https://gist.github.com/ChrisALee/df421d291289797012a188a77755c383
Any gclient
or vars
stuff is related to storing/mutating the data in the GraphQL database. That'll be different for us. We plan on having this on a separate file that interacts directly with our MongoDB instance.
Proposed way of doing it is to loop endlessly: Start timer of 10-30 minutes (using an async timeout)