Is it possible to use Koa instead of express to run an apolo sever? Currently this doesn’t seem possible because Koa requires a generator function in app.use()
Most of the parts of
apolloServer as usable separately, so you should be able to compose them and use https://github.com/chentsulin/koa-graphql
This is all that
apollo-server does - basically imports a ton of stuff from
graphql-tools and puts it together: https://github.com/apollostack/apollo-server/blob/master/src/apolloServer.js
Right now apollo-server uses express-graphql under the hood, but there’s an open PR on express-graphql to make it generic middleware that could be used with Koa as well. If I get around to it, I may incorporate that change in apollo-server before it makes it into express-graphql.