Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const { GraphQLServer } = require('graphql-yoga');
const server = new GraphQLServer({ typeDefs, resolvers });
server.start(() => console.log('Server is running...'));
// run integration tests
// how to stop the server?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment