Using Apollo with Koa

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()

1 Like

Most of the parts of apolloServer as usable separately, so you should be able to compose them and use

This is all that apollo-server does - basically imports a ton of stuff from graphql-tools and puts it together:

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.