Skip to content

Commit 98dd91f

Browse files
authored
docs: Added graphql-codegen plugin to the docs (TanStack#2356)
1 parent 856b144 commit 98dd91f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/pages/graphql.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Because React Query's fetching mechanisms are agnostically built on Promises, yo
77

88
> Keep in mind that React Query does not support normalized caching. While a vast majority of users do not actually need a normalized cache or even benefit from it as much as they believe they do, there may be very rare circumstances that may warrant it so be sure to check with us first to make sure it's truly something you need!
99
10+
## Type-Safety and Code Generation
11+
12+
You can use [GraphQL-Codegen](https://graphql-code-generator.com/) to generate ready-to-use React Hooks, based on your GraphQL operations. [You can find more details and examples here](https://www.graphql-code-generator.com/docs/plugins/typescript-react-query).
13+
1014
## Examples
1115

1216
- [basic-graphql-request](../docs/examples/basic-graphql-request) (The "basic" example, but implemented with [`graphql-request`](https://github.com/prisma-labs/graphql-request))

0 commit comments

Comments
 (0)