Using GraphQL and Relay for hybrid RoR apps
summary
Refactors a monolithic Drupal site into a Rails backend plus React/Relay frontends, replacing many custom REST endpoints with a single GraphQL endpoint and auto-generated types and mutations (Rails generators plus metaprogramming create CRUD mutations). Built a shared JS app generator that compiles to web or React Native, reuses components, and uses Relay’s local store and optimistic updates so UI feels instant; result is far fewer round trips and simpler mutation handling across web, extension, and mobile clients.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 1:49GraphQL overview and benefits
- 8:16GraphQL with Rails backend
- 12:01GraphQL mutations for data changes
- 14:06React.js and component architecture
- 20:58React performance and state management
- 24:10React Native for mobile apps
- 26:43Cross-platform client apps
- 28:28Relay for GraphQL-React connection
- 32:45Relay mutations on the client
- 35:00Q&A
related talks
33mUsing GraphQL and Relay for hybrid Ruby on Rails applications
47mReact, Relay and GraphQL — a perfectly normal component approach
01h 00mPowering the Front-end with React, GraphQL and Relay
41mThe GraphQL Way: A new path for JSON APIs
28mRelay: An Application Framework For React
21mReact Server Components Vs. GraphQL
31mTeaching GraphQL to write code for you, your users & customers
23mAugmenting a Legacy REST API with GraphQL
