You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@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.
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: {}}
The text was updated successfully, but these errors were encountered: