apollo-server icon indicating copy to clipboard operation
apollo-server copied to clipboard

Benefits over express-graphql

Open codepunkt opened this issue 10 years ago • 8 comments

Why would one want to use this module instead of express-graphql? On a first look it seems it's basically the same.

codepunkt avatar Jun 14 '16 21:06 codepunkt

Apollo server and express-graphql do almost the same thing. Apollo server just provides a superset of functionality compared to express-graphql. For instance, it lets you easily define your schema in GraphQL schema language. See the docs for more details: http://docs.apollostack.com/apollo-server/tools.html

We're currently refactoring the core to provide integrations with HAPI, express, connect and Koa. Once we're done with that, apollo server will no longer rely on express-graphql internally, and provide extra functionality, like websocket transports, stored queries, query batching, profiling & performance monitoring, etc.

helfer avatar Jun 14 '16 21:06 helfer

That sounds interesting, i will keep an eye out. My major pain points with express-graphql and graphql-js at the moment are fine grained validation of user input and authentication using graphql route.

Thanks for answerin!g :-)

codepunkt avatar Jun 14 '16 22:06 codepunkt

Hi @helfer, do you have any idea of the release date for the your HAPI version ?

denneulin avatar Jun 29 '16 08:06 denneulin

@denneulin The refactored express version is almost ready and will be merged into master early next week. @nnance has been working on a HAPI implementation alongside that. It's not quite ready yet, but I think it will be soon, because I can start working on it as well next week.

helfer avatar Jun 29 '16 17:06 helfer

Closing this to reduce since I think the original question is basically answered.

helfer avatar Jul 27 '16 00:07 helfer

Also in the docs now for anyone wondering https://github.com/apollographql/apollo-server#comparison-with-express-graphql

kfiroo avatar Aug 30 '17 12:08 kfiroo

@kfiroo the doc no longer available. reason?

adamchenwei avatar Jul 10 '19 17:07 adamchenwei

Git never forgets 😄 https://github.com/apollographql/apollo-server/tree/cfb086227e623ba1531bb887c3919e224682ccbc#comparison-with-express-graphql

johannespfeiffer avatar Feb 19 '20 15:02 johannespfeiffer