-
Notifications
You must be signed in to change notification settings - Fork 119
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
Unable to set a field to null #191
Comments
looks like |
Thanks! Sorry for opening this in probably the wrong repo, it's taken me a bit to figure out what's where here 😄 |
You're good – I think it's fair to leave this open until |
It seems like google/built_value.dart#604 is already merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
I am unable to set a field to
null
by executing a mutation that includes anull
input field value. I believe I should be able to do this, but the generated serializer removesnull
input fields from request variables.Consider the following input schema:
And associated mutation:
I am using ferry to create the following request:
Problem
This results in a GraphQL request over the wire that strips the
websiteUrl
entirely. Thevariables
look like this:With a raw GraphQL request, the below mutation would set the
websiteUrl
field tonull
, which is the behavior I expect when making an equivalent call:I traced the issue to the generated serializer for the input type, which looks like this:
The text was updated successfully, but these errors were encountered: