filmov
tv
Apollo Codegen In React - Generate Typescript Types from GraphQL Schema and Queries
![preview_player](https://i.ytimg.com/vi/c8WE0we0WiY/maxresdefault.jpg)
Показать описание
Graphql codegen / Apollo codegen is a great feature!
When working with GraphQL and Typescript in React, we want to be able to have typescript autocompletion on the variables we pass to our queries and mutations as well as on the data that is being returned from them.
You can do it manually by inserting a type or an interface as a generic inside your useQuery() or useMutation() hook. However, this process is extremely error-prone and is not DRY.
In this tutorial, we are going to see how to automate the generation of typescript types from the GraphQL schema.
00:00 Introduction
05:00 Generate typescript from GraphQL
08:00 Inject Query Data Generic
10:30 Inject Query Variables Generic
When working with GraphQL and Typescript in React, we want to be able to have typescript autocompletion on the variables we pass to our queries and mutations as well as on the data that is being returned from them.
You can do it manually by inserting a type or an interface as a generic inside your useQuery() or useMutation() hook. However, this process is extremely error-prone and is not DRY.
In this tutorial, we are going to see how to automate the generation of typescript types from the GraphQL schema.
00:00 Introduction
05:00 Generate typescript from GraphQL
08:00 Inject Query Data Generic
10:30 Inject Query Variables Generic
Apollo Codegen In React - Generate Typescript Types from GraphQL Schema and Queries
How to use Apollo Codegen with React
Don't waste your time! Automate everything! Apollo CLI TypeScript/GraphQL Codegen
The new GraphQL Code Generator Client Preset
Codegen: The good, the bad and the ugly
GraphQL Codegen for Typed Apollo Client Operations
Getting started with Apollo Client GraphQL in React + GraphQL CodeGen
Apollo Codegen
Full-Stack копия Twitch: Nest.js, GraphQL, Prisma, Next.js 15, Apollo | Часть 2
React Native EU 2021: Arnaud Bezançon - React Query with GraphQL code gen and Typescript
Using GraphQL APIs with TypeScript in a React application
GraphQL React Application With Apollo and GraphQL CodeGen [Latest]
Using GraphQL Code Generator with GraphQL Request
GraphQL Explained in 100 Seconds
Automagic TypeScript Codegen for GraphQL | Salvatore Aiello
GraphQL frontend development with React, TypeScript, Apollo and graphql-code-generator
React GraphQL with Apollo part 3
Using Hooks and Codegen | Tejas Kumar
React Query in 100 Seconds
Apollo Client 3 with GraphQL Code Generator
React Query Setup with Typescript, GraphQL, and GraphQL Codegen
GraphQL Codegen For Effortless GraphQL and Typescript
Apollo + React Hooks + TypeScript = 🥰 by: James Reggio, Web Platform Lead, Convoy
Six Years Later, I’m Over GraphQL
Комментарии