GraphQL Ruby is a Ruby library that implements the GraphQL specification. It supports Relay-style APIs and integrates with Ruby on Rails applications.
Overview
GraphQL Ruby provides a Ruby-native way to define schemas, types, resolvers, and execution for GraphQL services. The project targets teams that want idiomatic Ruby APIs comparable to the reference GraphQL implementation while staying close to the specification.
Installation is via RubyGems, and generators can wire GraphQL into Rails projects. Optional GraphiQL Rails integration is commonly added during setup for interactive querying during development.
The maintainers also offer GraphQL::Pro with commercial add-ons such as persisted queries, API versioning, streaming payloads, server-side caching, rate limiting, subscription backends, and authorization plugins. The open-source core remains the foundation for schema and execution logic.
Stated goals include full spec compliance, Relay front-end support, and a plain-Ruby API shaped like the reference implementation where practical.
Key features
- GraphQL spec implementation in Ruby
- Relay front-end support
- Ruby on Rails integration
- RubyGems distribution
- GraphiQL Rails option on install
- Idiomatic Ruby schema and resolver APIs
- Optional GraphQL::Pro commercial extensions
- Discord community support channel
Use cases
- GraphQL APIs in Ruby on Rails
- Relay-compatible GraphQL backends
- Ruby services exposing typed GraphQL endpoints
- Teams standardizing on Ruby GraphQL tooling