@@ -211,7 +211,7 @@ query getName {
211
211
212
212
** Explanatory Text **
213
213
214
- The target field of a field selection must defined on the scoped type of the
214
+ The target field of a field selection must be defined on the scoped type of the
215
215
selection set. There are no limitations on alias names.
216
216
217
217
For example the following fragment would not pass validation:
@@ -227,7 +227,7 @@ fragment aliasedLyingFieldTargetNotDefined on Dog {
227
227
```
228
228
229
229
For interfaces, direct field selection can only be done on fields. Fields
230
- of concrete implementors is not relevant to the validity of the given
230
+ of concrete implementors are not relevant to the validity of the given
231
231
interface-typed selection set.
232
232
233
233
For example, the following is valid:
@@ -1066,15 +1066,15 @@ fragment unionWithObjectFragment on Dog {
1066
1066
1067
1067
is valid because {Dog} is a member of the {CatOrDog} union. It is worth
1068
1068
noting that if one inspected the contents of the {CatOrDogNameFragment}
1069
- you could note that the no valid results would ever be returned. However
1069
+ you could note that no valid results would ever be returned. However
1070
1070
we do not specify this as invalid because we only consider the fragment
1071
1071
declaration, not its body.
1072
1072
1073
1073
1074
1074
##### Object Spreads In Abstract Scope
1075
1075
1076
1076
Union or interface spreads can be used within the context of an object type
1077
- fragment, but only if the object type is one of the possible types of the
1077
+ fragment, but only if the object type is one of the possible types of
1078
1078
that interface or union.
1079
1079
1080
1080
For example, the following fragments are valid:
@@ -1174,8 +1174,8 @@ and {Sentient}.
1174
1174
1175
1175
** Explanatory Text **
1176
1176
1177
- Input objects must not contain more than one fields of the same name, otherwise
1178
- an amgibuity would exist which includes an ignored portion of syntax.
1177
+ Input objects must not contain more than one field of the same name, otherwise
1178
+ an ambiguity would exist which includes an ignored portion of syntax.
1179
1179
1180
1180
For example the following query will not pass validation.
1181
1181
@@ -1212,7 +1212,7 @@ usage of a directive, the directive must be available on that server.
1212
1212
* Let {directiveName} be the name of {directive}.
1213
1213
* Let {directiveDefinition} be the directive named {directiveName}.
1214
1214
* Let {locations} be the valid locations for {directiveDefinition}.
1215
- * Let {adjacent} be the AST node the directive effects .
1215
+ * Let {adjacent} be the AST node the directive affects .
1216
1216
* {adjacent} must be represented by an item within {locations}.
1217
1217
1218
1218
** Explanatory Text **
@@ -1287,7 +1287,7 @@ fragment HouseTrainedFragment {
1287
1287
* For every {variable} on each {operation}
1288
1288
* Let {variableType} be the type of {variable}
1289
1289
* If {variableType} is non-null it cannot have a default value
1290
- * If {variable} has a default value it must be of the same types
1290
+ * If {variable} has a default value it must be of the same type
1291
1291
or able to be coerced to {variableType}
1292
1292
1293
1293
** Explanatory Text **
@@ -1352,12 +1352,12 @@ query intToFloatQuery($floatVar: Float = 1) {
1352
1352
* Let {variableType} be the type of {variable}
1353
1353
* While {variableType} is {LIST} or {NON_NULL}
1354
1354
* Let {variableType} be the referenced type of {variableType}
1355
- * {variableType} must of kind {SCALAR}, {ENUM} or {INPUT_OBJECT}
1355
+ * {variableType} must be of kind {SCALAR}, {ENUM} or {INPUT_OBJECT}
1356
1356
1357
1357
** Explanatory Text **
1358
1358
1359
1359
Variables can only be scalars, enums, input objects, or lists and non-null
1360
- variants of those types. These are known as input types. Object , unions,
1360
+ variants of those types. These are known as input types. Objects , unions,
1361
1361
and interfaces cannot be used as inputs.
1362
1362
1363
1363
For these examples, consider the following typesystem additions:
@@ -1417,16 +1417,16 @@ query takesCatOrDog($catOrDog: CatOrDog) {
1417
1417
** Formal Specification **
1418
1418
1419
1419
* For each {operation} in a document
1420
- * For each {variableUsage} in scope, variable must be operation's variable list.
1421
- * Let {fragments} be every fragment reference by that operation transitively
1420
+ * For each {variableUsage} in scope, variable must be in { operation} 's variable list.
1421
+ * Let {fragments} be every fragment referenced by that { operation} transitively
1422
1422
* For each {fragment} in {fragments}
1423
- * For each {variableUsage} in scope of {fragment}, variable must be
1423
+ * For each {variableUsage} in scope of {fragment}, variable must be in
1424
1424
{operation}'s variable list.
1425
1425
1426
1426
** Explanatory Text **
1427
1427
1428
1428
Variables are scoped on a per-operation basis. That means that any variable
1429
- used within the context of a operation must be defined at the top level of that
1429
+ used within the context of an operation must be defined at the top level of that
1430
1430
operation
1431
1431
1432
1432
For example:
@@ -1581,7 +1581,7 @@ query variableUnused($atOtherHomes: Boolean) {
1581
1581
}
1582
1582
```
1583
1583
1584
- because ${atOtherHomes} in not referenced.
1584
+ because ${atOtherHomes} is not referenced.
1585
1585
1586
1586
These rules apply to transitive fragment spreads as well:
1587
1587
@@ -1645,14 +1645,14 @@ an extraneous variable.
1645
1645
* For each {operation} in {document}
1646
1646
* Let {variableUsages} be all usages transitively included in the {operation}
1647
1647
* For each {variableUsage} in {variableUsages}
1648
- * Let {variableType} be the type of variable definition in the operation
1648
+ * Let {variableType} be the type of variable definition in the { operation}
1649
1649
* Let {argumentType} be the type of the argument the variable is passed to.
1650
1650
* Let {hasDefault} be true if the variable definition defines a default.
1651
1651
* AreTypesCompatible({argumentType}, {variableType}, {hasDefault}) must be true
1652
1652
1653
1653
* AreTypesCompatible({argumentType}, {variableType}, {hasDefault}):
1654
1654
* If {hasDefault} is true, treat the {variableType} as non-null.
1655
- * If inner type of {argumentType} and {variableType} be different, return false
1655
+ * If inner type of {argumentType} and {variableType} are different, return false
1656
1656
* If {argumentType} and {variableType} have different list dimensions, return false
1657
1657
* If any list level of {variableType} is not non-null, and the corresponding level
1658
1658
in {argument} is non-null, the types are not compatible.
0 commit comments