~/talk

Colocating & Composing Data Dependencies with Fragments

Talkat GraphQL Summit 2023 · 2023-10-09..10-13· [graphql, frontend-architecture]
links:none on file
slides:none on file

Argues for colocating GraphQL fragments on components and composing them into root queries, demonstrating an Apollo Server + React demo, GraphQL Codegen for types, and Relay Operation Optimizer for fragment args. Shows a harmful legacy fragment used in 73 places that expands to over 100 fields, slowing trivial pages; refactors item and nutrition card fragments into components, composes them at query roots, and yields precise TypeScript types and much less overfetching. Apollo Server and React

AI-written summary · about

  1. 0:00Introduction
  2. 1:50Why GraphQL fragments
  3. 5:17Fragment best practices
  4. 7:03Live demo setup
  5. 9:33Problem with generic fragments
  6. 10:16Collocating fragments with components
  7. 13:51Composing fragments into queries
  8. 16:28Benefits of component-level fragments
  9. 17:12Advantages of this approach
  10. 18:38Future improvements and tools
~/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.