Skip to content

Instantly share code, notes, and snippets.

@tonyxiao tonyxiao/router.js

Created Sep 9, 2016
Embed
What would you like to do?
GraphQL authentication
router.post('/graphql', (ctx) => {
return apolloKoa({
schema: executableSchema,
context: {
headers: ctx.request.headers,
},
printErrors: true,
})(ctx)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.