Overview
Explore the integration of TypeScript and GraphQL in this comprehensive 59-minute Microsoft conference talk. Discover how to leverage GraphQL's type-safety in schema definitions and extend it to resolvers, resolver variables, and consuming clients. Learn about type generation tools that create TypeScript type definitions, and implement them in both backend and frontend development using popular frameworks. Delve into effective storage platform modeling, combining GraphQL schema types with separate storage type systems for a robust, strongly-typed, end-to-end development model. Cover topics such as GraphQL basics, comparisons with REST, Azure Functions, Apollo Server, schema exploration, resolvers, caching, and practical applications in React apps.
Syllabus
What is GraphQL?.
Comparing GraphQL to REST.
Introducing a GraphQL query.
When should we not use GraphQL?.
Exploring the sample.
Adding an Azure Function to serve GraphQL.
Adding Apollo Server.
Exploring a GraphQL schema.
GraphQL resolvers.
Querying the updated model.
The rationale for TypeScript with GraphQL.
Caching data with GraphQL.
Generating a GraphQL schema and TypeScript types.
Using GraphQL Code Generator.
Using contexts and data sources.
Using GraphQL from a React app.
Taught by
Microsoft Developer