-
Notifications
You must be signed in to change notification settings - Fork 105
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
Version 5 lost the auto detection of the variables types #394
Comments
This is intended as I don't have time to reimplement those. Right now the best way to use zeus is to use typedDocumentNode output with some other lib like apollo. Then it works great with variables. My idea is to write a simple fetch client that consumes typeddocumentnode some day |
Adding to what @aexol mentioned, I've been using |
I will add default fetcher with typedDocumentNode so it should solve a problem. |
I am using grapql-zeus since a long time now but sticked to version 4 because with version 4 I was not obligated to put the variable type with the $ operator.
Now with version 5 I see that we have to put the variable type as well like this :
Zeus('query', { myFunc: [{ input: $('input','InputType!) }, outputModel ] })
With version 4 I was able to do :
Zeus('query', { myFunc: [{ input: $('input') }, outputModel ] })
And InputType! was automatically detected.
Is it intended ? Is there a workaround ?
Thank you in advance for you answer
The text was updated successfully, but these errors were encountered: