GraphQL on Rails - Creating Living APIs for a Data-hungry World
summary
Demo Rails app named fitter me shows GraphQL served via a bundled gem that adds a GraphiQL route and POST /graphql endpoint, schema files and types that return exactly the fields requested, and live documentation with deprecation reasons. Implementation uses includes and a Shopify-style batcher to avoid N+1 queries and a Draper decorator for custom fields, adopts a schema-first contract so front end and backend develop in parallel, and requires no graph database.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:04REST Distilled - Uniform Interface
- 3:46REST Distilled - Client-Server Separation
- 4:42REST is Rigid
- 7:51REST is Wasteful: Underfetching
- 15:07GraphQL is Flexible
- 17:05GraphQL is Easy to Document
- 33:37GraphQL - Incremental Adoption
- 34:05GraphQL First Workflow
related talks
41mThe GraphQL Way: A new path for JSON APIs
27mGraphQL on Rails
24mOptimizing for API Consumers with GraphQL
55mGraphQL - APIs the New Way
27mGraphQL and Rails beyond HTTP APIs
23mAugmenting a Legacy REST API with GraphQL
54mOptimizing performance in Rails apps with GraphQL layer
01h 00mGraphQL - A query language to empower your API consumers
