Skip to content

Commit

Permalink
Export graphqlKoa
Browse files Browse the repository at this point in the history
Being able to access graphqlKoa is useful for koa-based frameworks that don't expose the app object. This was previously exported in an earlier version of apollo-server and would be useful to export in the 2.x release as well.

Here's an example of how we're currently consuming this: https://github.com/fusionjs/fusion-plugin-apollo-server/blob/90e95ef1480659073c7e4e042b75ea6205cc068f/src/server.js#L37
  • Loading branch information
KevinGrandon committed Jan 30, 2019
1 parent 5939327 commit fe41c00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/apollo-server-koa/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ export {
registerServer,
ServerRegistration,
} from './ApolloServer';

export {
graphqlKoa,
} from './koaApollo';

0 comments on commit fe41c00

Please sign in to comment.