~/talk

GraphQL and Typescript

Talkat CityJS London 2023 · 2023-04-21..04-23· [graphql, typescript]
slides:none on file

Combining GraphQL and TypeScript reduces manual typing and runtime bugs by generating exact TypeScript types from the GraphQL schema and from individual operations, mapping ID/string/Int/Float to numbers/strings and surfacing GraphQL’s optional fields so TypeScript shows potential undefineds. The demo uses a React app, the GraphQL Code Generator CLI to produce a gql.ts file, and a watch mode that updates document-specific types on save; those types plug into Apollo-style useQuery generics to get end-to-end type safety and avoid duplication between frontend and backend.

AI-written summary · about

  1. 0:00Introduction and welcome
  2. 2:50What is TypeScript?
  3. 5:17GraphQL overview and benefits
  4. 10:34Type system comparison
  5. 15:04GraphQL Code Generator
  6. 18:59Demo with React and GraphQL
  7. 25:18Generating query-specific types
  8. 30:39Backend and migration tips
  9. 32:05Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.