Skip to content

Commit e364048

Browse files
author
Winsor, Daniel
committed
Fixing about 15 typos and grammatical errors, with another 4 lines being italicized.
1 parent 0599414 commit e364048

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

spec/Section 5 -- Validation.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ query getName {
211211

212212
** Explanatory Text **
213213

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
215215
selection set. There are no limitations on alias names.
216216

217217
For example the following fragment would not pass validation:
@@ -227,7 +227,7 @@ fragment aliasedLyingFieldTargetNotDefined on Dog {
227227
```
228228

229229
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
231231
interface-typed selection set.
232232

233233
For example, the following is valid:
@@ -1066,15 +1066,15 @@ fragment unionWithObjectFragment on Dog {
10661066

10671067
is valid because {Dog} is a member of the {CatOrDog} union. It is worth
10681068
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
10701070
we do not specify this as invalid because we only consider the fragment
10711071
declaration, not its body.
10721072

10731073

10741074
##### Object Spreads In Abstract Scope
10751075

10761076
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
10781078
that interface or union.
10791079

10801080
For example, the following fragments are valid:
@@ -1174,8 +1174,8 @@ and {Sentient}.
11741174

11751175
** Explanatory Text **
11761176

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

11801180
For example the following query will not pass validation.
11811181

@@ -1212,7 +1212,7 @@ usage of a directive, the directive must be available on that server.
12121212
* Let {directiveName} be the name of {directive}.
12131213
* Let {directiveDefinition} be the directive named {directiveName}.
12141214
* 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.
12161216
* {adjacent} must be represented by an item within {locations}.
12171217

12181218
** Explanatory Text **
@@ -1287,7 +1287,7 @@ fragment HouseTrainedFragment {
12871287
* For every {variable} on each {operation}
12881288
* Let {variableType} be the type of {variable}
12891289
* 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
12911291
or able to be coerced to {variableType}
12921292

12931293
** Explanatory Text **
@@ -1352,12 +1352,12 @@ query intToFloatQuery($floatVar: Float = 1) {
13521352
* Let {variableType} be the type of {variable}
13531353
* While {variableType} is {LIST} or {NON_NULL}
13541354
* 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}
13561356

13571357
** Explanatory Text **
13581358

13591359
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,
13611361
and interfaces cannot be used as inputs.
13621362

13631363
For these examples, consider the following typesystem additions:
@@ -1417,16 +1417,16 @@ query takesCatOrDog($catOrDog: CatOrDog) {
14171417
** Formal Specification **
14181418

14191419
* 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
14221422
* 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
14241424
{operation}'s variable list.
14251425

14261426
** Explanatory Text **
14271427

14281428
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
14301430
operation
14311431

14321432
For example:
@@ -1581,7 +1581,7 @@ query variableUnused($atOtherHomes: Boolean) {
15811581
}
15821582
```
15831583

1584-
because ${atOtherHomes} in not referenced.
1584+
because ${atOtherHomes} is not referenced.
15851585

15861586
These rules apply to transitive fragment spreads as well:
15871587

@@ -1645,14 +1645,14 @@ an extraneous variable.
16451645
* For each {operation} in {document}
16461646
* Let {variableUsages} be all usages transitively included in the {operation}
16471647
* 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}
16491649
* Let {argumentType} be the type of the argument the variable is passed to.
16501650
* Let {hasDefault} be true if the variable definition defines a default.
16511651
* AreTypesCompatible({argumentType}, {variableType}, {hasDefault}) must be true
16521652

16531653
* AreTypesCompatible({argumentType}, {variableType}, {hasDefault}):
16541654
* 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
16561656
* If {argumentType} and {variableType} have different list dimensions, return false
16571657
* If any list level of {variableType} is not non-null, and the corresponding level
16581658
in {argument} is non-null, the types are not compatible.

spec/Section 6 -- Execution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ CompleteValue(fieldType, result, subSelectionSet):
215215
* If {fieldType} is an Object type.
216216
* Let {objectType} be {fieldType}.
217217
* Otherwise if {fieldType} is an Interface or Union type.
218-
* Let {objectType} be ResolveAbstractType(fieldType, result).
218+
* Let {objectType} be ResolveAbstractType({fieldType}, {result}).
219219
* Return the result of evaluating {subSelectionSet} on {objectType} normally.
220220

221221
ResolveAbstractType(abstractType, objectValue):
@@ -346,7 +346,7 @@ the field returned `null`, and an error must be added to the `"errors"` list
346346
in the response.
347347

348348
However, if the type of that field is of a `Non-Null` type, since the field
349-
cannot be `null` the error is propogated to be dealt with by the parent field.
349+
cannot be `null` the error is propagated to be dealt with by the parent field.
350350

351351
If all fields from the root of the request to the source of the error return
352352
`Non-Null` types, then the `"data"` entry in the response should be `null`.

0 commit comments

Comments
 (0)