~/talk

Consuming GraphQL in TypeSafe Languages

Talkat GraphQLConf 2024 · on Tuesday, 2024-09-10· [typescript]
links:none on file
slides:none on file

Apollo iOS implements a Swift code generator that produces selection-set-based models (one model per fragment/query) and a shared storage box called dataDict to avoid copying, using copy-on-write for value semantics. Polymorphism uses optional type-case accessors (e.g., asVinylRecord) and a field merging step that hoists fields into matched type-cases and fragments so view code gets the exact fields it needs. Generation runs over the whole schema, improves memory and access speed, and offers toggles to disable or limit merging.

AI-written summary · about

  1. 0:00Introduction to GraphQL
  2. 1:05Challenges of type safety
  3. 3:11Generating type-safe models
  4. 5:59Models based on selection sets
  5. 7:46Handling polymorphism
  6. 9:55Field merging concept
  7. 14:28Fragment conversion
  8. 17:55Core design principles
  9. 18:56Memory and performance
  10. 22:45Summary and Q&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.