File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -645,6 +645,13 @@ Note: Variable values are not coerced because they are expected to be coerced
645
645
before executing the operation in {CoerceVariableValues()}, and valid operations
646
646
must only allow usage of variables of appropriate types.
647
647
648
+ Note: When a default value exists for a variable definition, the type of the
649
+ variable is allowed to be nullable even if it is used in a non-nullable
650
+ position, see
651
+ [ Allowing Optional Variables When Default Values Exist] ( #sec-All-Variable-Usages-Are-Allowed.Allowing-Optional-Variables-When-Default-Values-Exist )
652
+ in Validation. If the value for a variable is explicitly {null} and is used in a
653
+ non-nullable position, a _ field error_ will be raised.
654
+
648
655
### Value Resolution
649
656
650
657
While nearly all of GraphQL execution can be described generically, ultimately
You can’t perform that action at this time.
0 commit comments