The GraphQL Way: A new path for JSON APIs
summary
Claims that GraphQL makes Rails JSON APIs discoverable and change‑resilient and shows an implementation for a Rails 5 app powering a mobile client using graphql-ruby, the GraphiQL console and Apollo on the client. Demonstrates schema/types/mutations, explains lack of built‑in auth/authorization/caching, and shows solutions: graphql‑batch (Shopify) for N+1s, a CacheQL gem for per‑resolver caching, and Scout/APM or Apollo Engine for instrumentation. Built into a live app for mobile lessons with tradeoffs noted.
AI-written summary · about
chapters (26)
- 0:00Start
- 2:54Live Lessons!
- 5:51REST Problems
- 7:58Companies
- 9:40A Query
- 10:53Basics
- 16:18Every app
- 17:46Free API Docs!
- 19:18New data model?
- 23:42Off the Golden Path
- 24:00Installing
- 25:17Types
- 27:57Mutations
- 29:08A mutation
- 30:10Authentication
- 31:10Testing
- 31:51Functions
- 32:15Function tests
- 32:30Integration tests
- 32:48Test auth!
- 35:46Polymorphic Keys
- 36:06Caching
- 36:50Cache results
- 37:18Instrumentation
- 38:16Scout
- 39:27The New Way?
related talks
27mGraphQL on Rails
36mGraphQL on Rails - Creating Living APIs for a Data-hungry World
24mOptimizing for API Consumers with GraphQL
23mAugmenting a Legacy REST API with GraphQL
27mGraphQL and Rails beyond HTTP APIs
55mGraphQL - APIs the New Way
58mGraphQL -- Flexible APIs for Adaptive Clients
33mUsing GraphQL and Relay for hybrid Ruby on Rails applications
