Closed madiganz closed 2 years ago
@madiganz took me bit more than anticipated since the input handling was also broken in some other cases, such as passing [None]
in a list of non-nullables wasn't raising an exception.
I hope I did cover all the cases in the doctests, also made the code more uniform to avoid inconsistencies.
Let me know if #202 works for you, then I can merge that PR. The GitHub actions confirmed it works in all supported Python versions.
@barbieri no problem and thanks for getting this done so quickly. Your PR looks good to me
Description:
For input types that have a field that is another input type, when setting the field to
None
, it produces an empty object. This causes the GraphQL to fail when it needs to be an object with required properties, or null.Reproducible example:
Output:
{field1: {}}