Type safe GraphQL with TypeScript
summary
Builds a trivia API schema (games, players, questions, answers) and uses Apollo Server on Azure Functions plus React clients; runs graphql-code-generator to produce TypeScript models and TypeScript resolver types so resolvers, context and data sources are strongly typed. Shows mapping between DB shapes (snake_case, extra fields) and public schema, generates resolver signatures and client operation types, and wires them into React hooks. Demos hit local runtime and Docker hiccups but the generated end‑to‑end typing approach works.
AI-written summary · about
chapters (19)
- 0:00Start
- 2:01What Is Graphql
- 7:07Graphql
- 10:45Graphical Schema
- 14:43Apollo Studio
- 25:40Resolvers
- 32:48Data Access
- 33:05Apollo Context
- 33:24Dependency Injections
- 34:33Graphql Code Gen
- 38:57Translation Layers
- 41:00Typed Graphql
- 42:51Type Graphql
- 43:31Type First Approach
- 46:25Runtime Error
- 52:11Typescript Type Definitions
- 54:49Graphql Code Generator
- 55:11Graphql with Azure
- 55:39Authentication
related talks
25mType-safe GraphQL with TypeScript
27mWeb applications of the future with TypeScript and GraphQL
26mFull Stack Type Safety with React, GraphQL, and TypeScript
52mTypeScript and GraphQ
35mFull-stack Type Safety with React, GraphQL, and TypeScript
06mAutomagic TypeScript Codegen for GraphQL
25mWeb applications of the future with TypeScript and GraphQL
30mReact Superpowers with GraphQL and TypeScript
