Do not break GraphQL, extend it!
summary
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
chapters (10)
- 0:00Introduction
- 3:14Why GraphQL is revolutionary
- 7:08Extending GraphQL safely
- 13:38Breaking GraphQL is bad
- 16:50GraphQL proxy solution
- 21:50Proxy implementation details
- 27:03Proxy response enrichment
- 30:16Live proxy example
- 33:30Lessons learned
- 35:38Q&A








