Generating TypeScript Types for GraphQL Schema, Queries and Mutations Using GraphQL Code Generator

  Рет қаралды 19,244

Dmytro Danylov

Dmytro Danylov

Күн бұрын

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/...

Пікірлер: 19
@victorlongon
@victorlongon 2 жыл бұрын
That's very nice. I have used it before as well. Tbh, i was totally amazed by it. Definitely one of the best tools i have seen lately!
@harmanmax
@harmanmax 3 жыл бұрын
fantastic , very useful easy to understand .. Thank you for sharing
@bensim4409
@bensim4409 3 жыл бұрын
Straight forward and perfect explanation !
@kylodamian9981
@kylodamian9981 3 жыл бұрын
A tip : watch series on kaldroStream. Been using it for watching lots of of movies recently.
@willieronald7103
@willieronald7103 3 жыл бұрын
@Kylo Damian yea, been watching on KaldroStream for since december myself :)
@leandrokillian9202
@leandrokillian9202 3 жыл бұрын
@Kylo Damian yea, have been using KaldroStream for years myself =)
@jonrussell8519
@jonrussell8519 3 жыл бұрын
@Kylo Damian yup, I have been watching on kaldroStream for since december myself =)
@zaydenluciano1124
@zaydenluciano1124 3 жыл бұрын
@Kylo Damian Yea, I've been watching on kaldroStream for since november myself =)
@samuelocran7844
@samuelocran7844 2 жыл бұрын
This has helped me a lot. Thank you!
@ВадимБ-у9э
@ВадимБ-у9э 2 жыл бұрын
Thanks for such a great work! :)
@kamalchoudhary8364
@kamalchoudhary8364 2 жыл бұрын
Hi, thank for the amazing tutorial - though, I have one question. If I had to use callback functions of useAddNoteMutation(), how could I have used those? callback functions like onCompleted and onError.
@felipeschulz2485
@felipeschulz2485 3 жыл бұрын
thank you!
@jeromealtariba7339
@jeromealtariba7339 4 жыл бұрын
very interesting. Thks
@kaminegame811
@kaminegame811 3 жыл бұрын
I'm using a playgorund which is on a webstite, I declared the url insted the local host but when I use yarn codegen I got the same error before you typed yarn dev, how can I fix that?
@AliYasir5247
@AliYasir5247 3 жыл бұрын
cache.ReadQuery({query: someQuery}). how do i do that?
@natture
@natture 2 жыл бұрын
Hi can you also make tutorial on fedration
@KuzyoYaroslav
@KuzyoYaroslav 4 жыл бұрын
Дякую
@nazarpasika4692
@nazarpasika4692 3 жыл бұрын
Красно Дякую
@volodymyrkorniienko8670
@volodymyrkorniienko8670 3 жыл бұрын
Дякую
Typescript Generics Tutorial
21:56
Ben Awad
Рет қаралды 219 М.
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 332 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Learn GraphQL In 40 Minutes
39:43
Web Dev Simplified
Рет қаралды 740 М.
Conditional Types - Advanced TypeScript
23:10
Dmytro Danylov
Рет қаралды 37 М.
Mastering React Hooks with Typescript
55:12
Jack Herrington
Рет қаралды 100 М.
NextJS + GraphQL Blueprint: Professional Grade Setup
38:06
Jack Herrington
Рет қаралды 65 М.
Deploying a Next.js App to Vercel
49:48
Dmytro Danylov
Рет қаралды 4,4 М.
200 OK! Error Handling in GraphQL
35:20
Apollo GraphQL
Рет қаралды 44 М.
Utility Types - Advanced TypeScript
35:33
Dmytro Danylov
Рет қаралды 69 М.
SHAPALAQ 6 серия / 3 часть #aminkavitaminka #aminak #aminokka #расулшоу
00:59
Аминка Витаминка
Рет қаралды 332 М.