~/talk

The Evolution of GraphQL Code Generation

Talkat GraphQLConf 2023 · on Thursday, 2023-09-21· at 15:40· Grand Peninsula E· [graphql, developer-experience]
github:n1ru4l
slides:none on file

GraphQL Code Generator evolves from handwritten typings in 2017 to generating hooks in 2018–19 and then to emitting a typed DocumentNode around 2020, which embeds operation result and variable types in the GraphQL AST. That change lets Apollo Urql and graphql-request infer types uniformly and allows sunsetting many per-client plugins. A fragmented operation co-location preset is now available to compose component fragments into minimal queries, eliminating “zombie” .graphql files and overfetching, and a persistent operations feature emits a JSON of queries with hashes for easy server-side lookup.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Early type safety methods
  3. 3:35Generating React hooks
  4. 5:07The AST-based approach
  5. 8:41Fragment-based development
  6. 12:35Future and conclusions
~/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.