~/talk

Do not break GraphQL, extend it!

Talkat reactjsday 2023 · on Friday, 2023-10-27· [graphql]
slides:none on file

A practical recipe shows how to extend GraphQL without breaking the spec by proxying queries, adding __typename at every selection, fetching extra data via REST during a depth‑first traversal, and injecting results into the extensions field under JSONPath keys so unmodified clients ignore it. Code uses the reference GraphQL implementation in JavaScript, Fastify for the proxy, in‑memory caching of parsed documents, and careful removal/merge of injected fields before returning responses.

AI-written summary · about

  1. 0:00Introduction
  2. 3:14Why GraphQL is revolutionary
  3. 7:08Extending GraphQL safely
  4. 13:38Breaking GraphQL is bad
  5. 16:50GraphQL proxy solution
  6. 21:50Proxy implementation details
  7. 27:03Proxy response enrichment
  8. 30:16Live proxy example
  9. 33:30Lessons learned
  10. 35:38Q&A
~/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.