~/talk

The GraphQL Way: A new path for JSON APIs

Talkat RailsConf 2018 · 2018-04-17..04-19· [graphql, ruby-on-rails]
slides:none on file

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

  1. 0:00Start
  2. 2:54Live Lessons!
  3. 5:51REST Problems
  4. 7:58Companies
  5. 9:40A Query
  6. 10:53Basics
  7. 16:18Every app
  8. 17:46Free API Docs!
  9. 19:18New data model?
  10. 23:42Off the Golden Path
  11. 24:00Installing
  12. 25:17Types
  13. 27:57Mutations
  14. 29:08A mutation
  15. 30:10Authentication
  16. 31:10Testing
  17. 31:51Functions
  18. 32:15Function tests
  19. 32:30Integration tests
  20. 32:48Test auth!
  21. 35:46Polymorphic Keys
  22. 36:06Caching
  23. 36:50Cache results
  24. 37:18Instrumentation
  25. 38:16Scout
  26. 39:27The New Way?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.