graphql-zeus icon indicating copy to clipboard operation
graphql-zeus copied to clipboard

useTypedQuery doesn't set response type

Open larevalos opened this issue 2 years ago • 1 comments

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 avatar May 10 '23 23:05 larevalos

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

larevalos avatar May 10 '23 23:05 larevalos