I have a pubsub service running with Redis and I need to check if GraphQL Yoga server is up and running locally before I start it.
What's the best way to do it in Node.js with TypeScript?
healthCheckEndpoint is set to 'live', port 4000
I have a pubsub service running with Redis and I need to check if GraphQL Yoga server is up and running locally before I start it.
What's the best way to do it in Node.js with TypeScript?
healthCheckEndpoint is set to 'live', port 4000
In order to ensure
Redis
doesn't connect untilGraphQL
is running, you can import the redis library asynchronously inside the server's success callback.index.js
redis.js