Skip to content

Instantly share code, notes, and snippets.

@callmephilip
Created July 20, 2016 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save callmephilip/e84b8203e06af1da269b25634fb355bb to your computer and use it in GitHub Desktop.
Save callmephilip/e84b8203e06af1da269b25634fb355bb to your computer and use it in GitHub Desktop.
import express from 'express';
import parseGraphQLHTTP from 'parse-graphql-server';
const app = express();
app.use('/graphql', parseGraphQLHTTP({ schema, graphiql: true, }));
app.listen(process.env.PORT, () => {
console.log('server running');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment