Skip to content

Commit

Permalink
docs: Added graphql-codegen plugin to the docs (#2356)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha authored Jun 9, 2021
1 parent 856b144 commit 98dd91f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/pages/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Because React Query's fetching mechanisms are agnostically built on Promises, yo

> 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!
## Type-Safety and Code Generation

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).

## Examples

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

1 comment on commit 98dd91f

@vercel
Copy link

@vercel vercel bot commented on 98dd91f Jun 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.