GraphQL Ruby vs Sangria
GraphQL Ruby
graphql-ruby.orgSangria
sangria-graphql.github.ioSide by side
| Figure | GraphQL Ruby | Sangria |
|---|---|---|
| Price from | $91.67/mo | — |
| Free plan | Yes | — |
| Free trial | — | — |
| Open source | — | — |
| API | Yes | Yes |
| Self-hosted | Yes | Yes |
| Plans published | 3 | 0 |
| Spec score · GraphQL Tools | 7.8 (#11) | 6.8 (#22) |
| Execution | The library supports serving queries, mutations, subscriptions, streaming responses, and multiplexed queries. | Its Executor runs queries against a schema and can use a user context object for shared data or authorization information. |
| License | RubyGems lists the graphql gem license as MIT, while GraphQL::Pro and GraphQL::Enterprise use special commercial licenses. | The Sangria repository states that the project is licensed under Apache License 2.0. |
| Purpose | The graphql gem implements the GraphQL Server Specification in Ruby and adds a GraphQL API to Ruby or Rails applications. | Sangria is a Scala implementation of GraphQL. |
Plans
GraphQL Ruby
- GraphQL Ruby gemFree
- GraphQL::Pro$1,100 a year
- GraphQL::Enterprise$2,400 a year
In their own words
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.
Sangria
Sangria has no write-up on Specifiction yet; its figures are above.