-
Notifications
You must be signed in to change notification settings - Fork 184
Parsing incorrectly wipes out mapping #325
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
Comments
It is not clear what you mean by "parsing logic". Please help me to reproduce your problem:
|
Please also activate debug logs and post the result here. |
I'm currently trying to write a test to demonstrate the issue. I don't know how much of the details as I can share as this is an alpha version of a backend I have access to with authentication. I don't think the backend matters in anyway to be honest. This is purely when parsing the results ( |
ok, if you could make a failing test and add it as a PR that would be nice. |
I created the failing test (without |
This might be a bug in graphql-core, but I was unable to track down the cause of the bug so far. |
@pvanderlinden @leszekhanusz The problem seems to be somewhere in the parse_result_recursive function of gql (the ParseResultVisitor), not graphql-core. |
Yes, it's possible I found the problem. I'll make more tests tomorrow and get the PR cleaned, I don't really remember why there was a special case for None here. |
Thanks. I will test run the branch tomorrow on my code |
At least now I know there is at least one person using this feature 😄 |
Haha, always good to know. I'm using it to automatically convert 2 custom scalars: a datetime like type and a decimal (fixed point). |
Fixed in v3.3.0 |
Describe the bug
The parsing logic completely wipes out parent value, if one of the fields in null.
e.g. the value is a list with a type in it with the following definition (removed all the other fields for simplicity)
if I get the following result:
the parsed result will end up being:
Expected behavior
Result should be:
System info (please complete the following information):
The text was updated successfully, but these errors were encountered: