File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1359,8 +1359,8 @@ since {isHousetrainedFragment} is used within the context of the operation
1359
1359
{variableIsDefinedUsedInSingleFragment} and the variable is defined by that
1360
1360
operation.
1361
1361
1362
- On the contrary is a fragment is included within an operation that does
1363
- not define a referenced variable, this is a validation error .
1362
+ On the other hand, if a fragment is included within an operation that does
1363
+ not define a referenced variable, the query is invalid .
1364
1364
1365
1365
``` !graphql
1366
1366
query variableIsNotDefinedUsedInSingleFragment {
@@ -1592,8 +1592,9 @@ query booleanArgQueryWithDefault($booleanArg: Boolean = true) {
1592
1592
```
1593
1593
1594
1594
For list types, the same rules around nullability apply to both outer types
1595
- and inner types. A nullable list cannot be passed to a non-null list, and a lists
1595
+ and inner types. A nullable list cannot be passed to a non-null list, and a list
1596
1596
of nullable values cannot be passed to a list of non-null values.
1597
+ The following is valid:
1597
1598
1598
1599
``` graphql
1599
1600
query nonNullListToList ($nonNullBooleanList : [Boolean ]! ) {
@@ -1603,7 +1604,7 @@ query nonNullListToList($nonNullBooleanList: [Boolean]!) {
1603
1604
}
1604
1605
```
1605
1606
1606
- However a nullable list could not be passed to a non-null list.
1607
+ However, a nullable list cannot be passed to a non-null list:
1607
1608
1608
1609
``` !graphql
1609
1610
query listToNonNullList($booleanList: [Boolean]) {
You can’t perform that action at this time.
0 commit comments