Skip to content

Commit 2b9d28b

Browse files
author
Jonas Helfer
committed
Fix minor typos and clarify language
1 parent fb100f1 commit 2b9d28b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spec/Section 5 -- Validation.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,8 +1359,8 @@ since {isHousetrainedFragment} is used within the context of the operation
13591359
{variableIsDefinedUsedInSingleFragment} and the variable is defined by that
13601360
operation.
13611361

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.
13641364

13651365
```!graphql
13661366
query variableIsNotDefinedUsedInSingleFragment {
@@ -1592,8 +1592,9 @@ query booleanArgQueryWithDefault($booleanArg: Boolean = true) {
15921592
```
15931593

15941594
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
15961596
of nullable values cannot be passed to a list of non-null values.
1597+
The following is valid:
15971598

15981599
```graphql
15991600
query nonNullListToList($nonNullBooleanList: [Boolean]!) {
@@ -1603,7 +1604,7 @@ query nonNullListToList($nonNullBooleanList: [Boolean]!) {
16031604
}
16041605
```
16051606

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:
16071608

16081609
```!graphql
16091610
query listToNonNullList($booleanList: [Boolean]) {

0 commit comments

Comments
 (0)