graphql-editor / graphql-zeus

GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native ( apollo compatible )
https://graphqleditor.com/docs/zeus
MIT License
1.95k stars 106 forks source link

useTypedQuery doesn't set response type #372

Open larevalos opened 1 year ago

larevalos commented 1 year ago

Documentation https://graphqleditor.com/docs/tools/zeus/plugins/react-query/ says that when using useTypedQuery the response will be typed automatically but is not.

image

Only when I use the Chain client the response is typed, but I want to use useTypedQuery so I can take advantage of the useQuery from react.

I generated zeus files with npx zeus schema .\generatedFolder --reactQuery and I also tried npx zeus@latest schema .\generatedFolder --reactQuery

larevalos commented 1 year ago

I have found this PR https://github.com/graphql-editor/graphql-zeus/pull/371 solve this problem