Created
February 18, 2017 18:49
-
-
Save joshbalfour/3f8f017ce62a07a14b069871f021d448 to your computer and use it in GitHub Desktop.
Revisions
-
joshbalfour created this gist
Feb 18, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ const { graphqlKoa, graphiqlKoa } = require('graphql-server-koa') module.exports = { graphqlKoa: options => function *(){ const context = this return yield graphqlKoa(Object.assign({}, options, { context }))(context) }, graphiqlKoa: options => function (){ const context = this graphiqlKoa(Object.assign({}, options, { context }))(context) }, }