~/talk

Type-safe GraphQL with TypeScript

Talkat OpenJS World 2021 · 2021-06-02..06-03· [typescript, graphql]
slides:none on file

Shows how to get end-to-end TypeScript safety by generating types from a GraphQL schema and using them on server and client. Uses graphql-code-generator to emit TypeScript models and resolver types, runs an Apollo GraphQL server (serverless on Azure Functions in the demo), and consumes typed operations in a React app via React Hooks. Demonstrates model mappers to translate DB field names to schema types so compile errors replace runtime nulls.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13What is GraphQL
  3. 4:27What are we building
  4. 5:54Demo
  5. 14:26Testing
  6. 15:24Model Mapping
  7. 23:03Wrap Up
~/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.