Data fetching with GraphQL and ActionCable
summary
A concrete how-to for running GraphQL on Rails using the graphql-ruby gem, GraphiQL for introspection, and ActionCable WebSockets to push subscriptions and incremental responses. The presenter shows a working prototype that streams GraphQL patches using @defer/@stream and ActionCable (not yet in production), notes streaming multiple events over one channel, and flags the unresolved problem of end‑of‑stream signaling. Also covers persisted queries to save bandwidth and graphql-batch to fix N+1 queries. graphql-ruby GraphiQL ActionCable
AI-written summary · about
chapters (18)
- 0:00Intro
- 0:27MAGIC
- 1:03Data-Driven UI
- 1:48Canonical Representation
- 5:04GraphQL Schema
- 6:55Introspection
- 7:25GraphQL "Layer"
- 8:14GraphQL Recap
- 9:12Types
- 9:44Fields
- 13:31GraphQL & Ruby Recap
- 13:50Catching on?
- 14:13Ideas from Facebook
- 15:00Live Updates
- 15:22Subscriptions
- 16:30ActionCable
- 18:45Time-to-first-byte
- 22:06Keep Exploring!
related talks
27mGraphQL on Rails
41mThe GraphQL Way: A new path for JSON APIs
36mGraphQL on Rails - Creating Living APIs for a Data-hungry World
54mOptimizing performance in Rails apps with GraphQL layer
23mAugmenting a Legacy REST API with GraphQL
24mOptimizing for API Consumers with GraphQL
32mGraphQL Future
18mCrafting compelling real-time web experiences with GraphQL
