-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gql.tada / TadaDocumentNode types are not automatically infered #207
Comments
They should be working as of 3.4, which version are you on? |
Could it be the typescript configuration? - I am also using bun, so not sure if that might be a cause.. |
Create a repo where this is visible and I will take a look. |
Sure, will try to set something up thats similiar! Might take some time, hopefully thats okay |
https://github.com/Subwaytime/villus-gql-issue - I tried using Note: The repo is similiar to the actual project aside from the fact that the queries and mutations are usually in an api folder instead of the store. |
Essentially when using
useQuery
oruseMutation
, any query/mutation type does not get infered for the data object.This can be fixed if we provide the types directly
However it would be great if these are automatically set, similiar to
https://villus.logaretm.com/guide/typescript-codgen/#using-typed-document.
Not sure if this would be possible!
The text was updated successfully, but these errors were encountered: