Client code generation 🖇️
Use codegen to generate fully-typed hooks to execute queries and mutations.
Again we're using TypeScript here to take full advantage of our type-safe GraphQL schema. We can make use of codegen, but this time to generate code for our client.
This is a really powerful tool. It allows us to generate fully-typed hooks to execute queries and mutations.
With that in place we get e2e type safety for our queries and mutations! Pretty cool huh?