Automate the workflow of the generation of the types and custom React hooks, in React-Typescript applications with GraphQL Code Generator.
Check it out the full article here.
π¦ my-project
β£ π src
β β£ π pages
β β β index.tsx
β β£ π queries
β β β£ π autogenerate
β β β my-query.gql
β β apollo-client.ts
β£ codegen.yml
β package.json