~/talk

Build Confidently: How @Catch and Error Handling Pave Way in Field Nullability

Talkat GraphQLConf 2024 · on Tuesday, 2024-09-10· at 17:00· Skyline B-C - Level 21· [frontend-architecture]
slides:none on file

GraphQL clients stop treating every null as ambiguous by throwing actual exceptions when a field has server errors and by returning an inline union for caught fields so components can handle failures without dropping the whole render. Uses throw-on-field-error with JavaScript error boundaries and an inline @catch directive that yields {ok, value, errors}. This is implemented in Relay 18, rolled out at scale at Meta with query flags for incremental adoption, and prevents null-coercion bugs in UI code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:32Current error handling issues
  3. 4:45The root cause in the spec
  4. 7:00Throwing on field errors
  5. 11:59The @catch directive
  6. 15:07Implementation and rollout
  7. 17:30Q&A session
~/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.