Should an input field with a null value use the default value just as if the field weren't included? #1833
andersonbd1
started this conversation in
General
Replies: 1 comment 7 replies
-
Hi @andersonbd1 - This behavior is per spec as described here: https://spec.graphql.org/June2018/#sec-Type-System.Non-Null |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have this field declared in my graphql:
I suppose I could see reasons for a contrary opinion on this, but I would expect the value to be set to false (not null) if the client explicitly passes in a null value. This is not the case (at least in v5.4.1). Instead the value is set to null. I have a couple of question:
^1
, but how does this map to a branch? I haven't done a ton of open source code contributions, but when I have I'd expect to see a v5 branch.^1
change:
to
Beta Was this translation helpful? Give feedback.
All reactions