Created
July 20, 2016 18:05
-
-
Save callmephilip/e84b8203e06af1da269b25634fb355bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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