Closed
Description
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)
node {
...other fields
from {
address
}
to {
address
}
}
}
if I get the following result:
[
{'node': {'from': {'address': '0x45b9ad45995577fe'}, 'to': {'address': '0x6394e988297f5ed2'}}},
{'node': {'from': None, 'to': {'address': '0x6394e988297f5ed2'}}},
]
the parsed result will end up being:
[
{'node': {'from': {'address': '0x45b9ad45995577fe'}, 'to': {'address': '0x6394e988297f5ed2'}}},
None
]
Expected behavior
Result should be:
[
{'node': {'from': {'address': '0x45b9ad45995577fe'}, 'to': {'address': '0x6394e988297f5ed2'}}},
{'node': {'from': None, 'to': {'address': '0x6394e988297f5ed2'}}},
]
System info (please complete the following information):
- OS: Linux
- Python version: 3.10
- gql version: 3.2.0
- graphql-core version: 3.2.1