I need to call a mutation from a cron job running on the server. I found this SO post, but the accepted answer said there was no way to do it.
Then I found this on GitHub, from 2017:
graphql-serveris a network wrapper forgraphql corefunction. if you don't want to use it over network, you can just run it standalone:import scheme from './scheme'; const query = `{ me { name } }`; const result = graphql(scheme, query); console.log(result);function documentation can be found here
That looks pretty good! Is that the best practices approach in 2020?