In this video, I will be going over how to set up react-query in your frontend project to use graphql-request as its fetcher. I will also go into how to use graphql code generator to automatically create your react-query hooks for you as well as types and other things.
Backend Graphql Project: github.com/leoroese/apollofed...
Start Project: github.com/leoroese/reactquer...
Finished Implementation Project: github.com/leoroese/reactquer...
Timestamps
0:00 intro
4:00 project start
6:30 setup react query
8:40 graphql request client
11:16 graphql request
15:50 codegen setup
20:00 codegen query
22:30 mutations
28:55 query invalidation
30:13 queries with params
4 июл 2024