dotansimha / graphql-yoga

🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.
https://the-guild.dev/graphql/yoga-server
MIT License
8.25k stars 574 forks source link

support for Koa or hapi #13

Closed AhmadEl-Banna closed 6 years ago

AhmadEl-Banna commented 6 years ago

do you have any plan to support any servers rather than express soon ?

schickling commented 6 years ago

Hi @AhmadEl-Banna, thanks for your question.

There are no plans to support other servers than express so far. Can you further describe your requirements/use case?

kbrandwijk commented 6 years ago

Closing this for now, as there has been no more feedback on the issue.

vjpr commented 6 years ago

I already run a koa server and would like to add the middleware to koa.

How tightly bound to express is it? Would it work if I used a koa express wrapper like https://www.npmjs.com/package/express-to-koa?

iam-peekay commented 6 years ago

@vjpr did using that wrapper work for you?

@kbrandwijk @schickling still no plans to support Koa?

gengjiawen commented 6 years ago

For me, koa has better design, with koa I can easily track all of my request and response. Maybe we could make graphql-yoga support most servers like apollo-server.

Urigo commented 2 years ago

Hey, @Urigo from The Guild here!

You might know us from projects such as graphql-code-generator, envelop or graphql-tools.

For a long time we thought that the Javascript ecosystem is still missing a lightweight cross-platform, but still highly customizable GraphQL Server.

In the past the awesome Prisma team took on that great challenge and now we are happy to announce that we are continuing them and just released GraphQL Yoga 2.0 - Build fast, extensible, and batteries-included (Subscriptions, Serverless, File uploads support) GraphQL APIs in Node.js 🚀

And regarding the issue here, Yoga is completely separated from the way you do HTTP, so you can easily use and expose anything to express but also use Yoga on many other environments and frameworks like Fastify, Koa, Hapi, Cloudflare Workers, Lambdas and many more.

We have been working a long time on version 2.0 and have been using it in our clients projects for a few months now and shared a couple of alpha cycles here. Thank you all for your feedback and suggestions, you made this release possible!

Please try Yoga out again, give us feedback and help us spread the word on the new release!