~/talk

Augmenting a Legacy REST API with GraphQL

Talkat Apidays LIVE Paris 2020 · 2020-12-08..12-10· [graphql, api-design]
links:none on file
slides:none on file

Adds GraphQL on top of a Rails REST API for a coworking app, keeping REST live while letting clients select fields; workflow: write tests, extract business logic into interactors, declare GraphQL types and queries, then reuse the interactors for mutations. Uses GraphQL Ruby, the Altair Chrome extension, and solves N+1 SQL with BatchLoader / DataLoader by providing a reusable preload_field helper that batches association loads. Web frontend adoption is strong, mobile is neutral, no subscriptions used, deployment runs in production but usage is limited by COVID shutdowns.

AI-written summary · about

  1. 0:00Intro
  2. 0:40Welcome
  3. 2:34Why GraphQL
  4. 7:40GraphQL Implementation
  5. 11:26N1 Queries
  6. 14:17Frontend
  7. 17:38QA
~/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.