Рет қаралды 19,244
In this video I'll show how to generate TypeScript types for GraphQL schema, resolvers, queries and mutations using GraphQL Code Generator. For the example I'll use a simple Next.js app that includes both, the front end and the back end.
Table of Contents:
00:25 The example app's overview
01:04 Brief explanation of the app's back end
03:42 Setting up GraphQL Code Generator for the back end (the resolvers)
09:14 Using the generated types to describe the resolvers
16:04 Brief explanation of the app's front end
17:53 Setting up GraphQL Code Generator for the front end
Code:
github.com/d-d...
👨💻 My Udemy Course:
Using TypeScript with React
www.udemy.com/...