Apollo Client vs GraphQL Ruby
Apollo Client
apollographql.comGraphQL Ruby
graphql-ruby.orgSide by side
| Figure | Apollo Client | GraphQL Ruby |
|---|---|---|
| Price from | $5/mo | $91.67/mo |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| Web | Yes | — |
| iOS | Yes | — |
| Android | Yes | — |
| API | Yes | Yes |
| Self-hosted | — | Yes |
| Plans published | 4 | 3 |
| Spec score · GraphQL Tools | 8.9 (#2) | 7.8 (#11) |
| Purpose | Apollo Client is a GraphQL state management library for JavaScript that manages local and remote data, fetches, caches, and modifies application data, and automatically updates the UI. | The graphql gem implements the GraphQL Server Specification in Ruby and adds a GraphQL API to Ruby or Rails applications. |
Plans
Apollo Client
- FreeFree
- Developer$5 a month
- EnterprisePriced on request
- StandardPriced on request
GraphQL Ruby
- GraphQL Ruby gemFree
- GraphQL::Pro$1,100 a year
- GraphQL::Enterprise$2,400 a year
In their own words
Apollo Client
Apollo Client is a JavaScript library for managing GraphQL data in applications. It can fetch, cache and modify data from local and remote sources, then update the interface as data changes. Developers describe a query and receive its data without manually managing loading states. Normalized caching can make responses to cached queries almost immediate. The core @apollo/client library has built-in React integration, including hooks and Suspense, and the library can be added incrementally to JavaScript or TypeScript applications. It works with any build setup and GraphQL API. Community integrations extend support to frameworks including Angular, Vue, Svelte, Solid.js and Ember, as well as native iOS and Android. Apollo Client also supports GraphOS Router features such as incremental delivery, subscriptions and persisted-query safelisting. Chrome and Firefox extensions provide GraphiQL and tools for inspecting watched queries, mutations and cache. Apollo Client is free and open source. GraphOS Free includes one self-hosted router limited to 60 requests per minute; the separate Developer plan is $5 a month, billed monthly.
GraphQL Ruby
GraphQL Ruby is a free, self-hosted Ruby gem that implements the GraphQL Server Specification for Ruby or Rails applications. It provides a self-documenting, strongly typed schema and serves queries, mutations, subscriptions, streaming responses, and multiplexed queries. Configurable depth and complexity validation can reject deeply nested or overly complex requests. Authorization tools handle schema visibility and checks on application objects during execution, while authentication is generally left to the application controller. GraphQL::Dataloader batches external data access and caches results per query; AsyncDataloader supports parallel I/O. Documentation covers Relay, Apollo Client, GraphQL.js Client, GraphiQL, urql, and custom JavaScript, plus monitoring integrations. The open-source gem is installed through RubyGems and uses the MIT license. The GraphQL Ruby gem costs nothing. GraphQL::Pro costs $1,100 a year, and GraphQL::Enterprise costs $2,400 a year under commercial licenses.