~/talk

Structure your GraphQL apps!

Talkat Flutter Vikings 2022 · 2022-08-31..09-01· [graphql, frontend-architecture]
links:none on file
slides:none on file

Proposes structuring Flutter GraphQL apps by co‑locating fragments with widgets and using build_runner + graphql codegen to emit generated serializers per selection set and client extensions. Fragments let one composite query replace the waterfall of child queries so the UI issues a single network request replacing waterfall while each widget depends only on its fragment. Generator creates hooks like the useQuery$fetchMovies hook, gives null‑safe models, fewer runtime errors, and a Relay‑inspired graphql_switch client in early development.

AI-written summary · about

  1. 0:00Introduction and goals
  2. 1:58GraphQL basics
  3. 4:27Comparing GraphQL and REST
  4. 7:38Overcoming GraphQL pitfalls
  5. 11:03Component-based architecture
  6. 14:26Using fragments
  7. 17:58Code generation in Dart
  8. 22:04The code gen framework
  9. 27:29Future and community
~/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.