-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
toGraphQL gets null type for enum variable #1256
Comments
Thanks for filing such a detailed issue. It looks like |
I'd be happy to, but I'm a bit of a newbie to this repo, and relay in general. How can I get the call type from |
Oh it's simply an attribute of |
Currently types are ignored and not getting passed in `callsFromGraphQL` or `callsToGraphQL`. This results in dangerous output in `toGraphQL`, in which all calls have type null. This can cause problems when using non-scalar types (like enum). Example can be found [here](facebook#1256).
Done. #1257, though there are some build errors... |
I'm using
isomorphic-relay
, and I'm encountering some problem, which you can read about in more details here.The relevant part for you, is that I saw the server's preloaded data looks like this:
Here you can see that the type of
orderBy
is null, instead of PollSort, an enum type.The above snippet is, as mentioned, part of the preloaded data the server passed to the client. This is done in this file: prepareData.js. The relevant line is:
So the root of the problem is actually that
toGraphQL.Query
returns null for my input variable type.Any idea how can this be fixed?
The text was updated successfully, but these errors were encountered: