@@ -706,7 +706,7 @@ then an error should be raised.
706
706
707
707
** Input Coercion**
708
708
709
- Note that ` null ` is not a valid keyword in GraphQL, so a query cannot look like:
709
+ Note that ` null ` is not a value in GraphQL, so a query cannot look like:
710
710
711
711
``` !graphql
712
712
{
@@ -715,22 +715,31 @@ Note that `null` is not a valid keyword in GraphQL, so a query cannot look like:
715
715
```
716
716
717
717
to indicate that the argument is null. Instead, an argument would be null only
718
- if it is passed a variable that is then not set :
718
+ if it is omitted :
719
719
720
720
``` graphql
721
721
{
722
+ field
723
+ }
724
+ ```
725
+
726
+ Or if passed a variable of a nullable type that at runtime was not provided
727
+ a value:
728
+
729
+ ``` graphql
730
+ query withNullableVariable ($var : String ) {
722
731
field (arg : $var )
723
732
}
724
733
```
725
734
726
- Hence, if the value for a non-null is hard-coded in the query, it is always
735
+ Hence, if the value for a Non Null type is hard-coded in the query, it is always
727
736
coerced using the input coercion for the wrapped type.
728
737
729
- When a non-null input has its value set using a variable, the coerced value
738
+ When a Non Null input has its value set using a variable, the coerced value
730
739
should be ` null ` if the provided value is ` null ` -like in the provided
731
740
representation, or if the provided value is omitted. Otherwise, the coerced
732
- value is the result of running the wrapped type's input coercion on the provided
733
- value.
741
+ value is the result of running the wrapped type's input coercion on the
742
+ provided value.
734
743
735
744
## Directives
736
745
0 commit comments