1
1
# Validation
2
2
3
- GraphQL does not just verify if a request is syntatically correct.
3
+ GraphQL does not just verify if a request is syntactically correct.
4
4
5
5
Prior to execution, it can also verify that a request is valid
6
6
within the context of a given GraphQL schema. Validation is primarily
@@ -296,7 +296,7 @@ query directQueryOnUnionWithoutSubFields
296
296
* Let {arguments} be the set of argument provided to the {selection}
297
297
* Let {targetField} be the target field of a given {selection}
298
298
* Let {argumentDefinitions} be the set of argument definitions of {targetField}
299
- * Each {argumentName} in {arguments} must have a corresponding argument defintion
299
+ * Each {argumentName} in {arguments} must have a corresponding argument definition
300
300
in the {targetField} with the same name
301
301
302
302
** Explanatory Text **
@@ -363,9 +363,9 @@ fragment multipleArgsReverseOrder on Arguments {
363
363
* Let {arguments} be the set of argument provided to the {selection}
364
364
* Let {targetField} be the target field of a given {selection}
365
365
* Let {argumentDefinitions} be the set of argument definitions of {targetField}
366
- * For each {literalArgument} of all {arguements } with literal for values.
367
- * The type of {literalArgument} must equal the type of the argument defintion OR
368
- * The type of {literalArgument} must be coercable to type of the argument definition
366
+ * For each {literalArgument} of all {arguments } with literal for values.
367
+ * The type of {literalArgument} must equal the type of the argument definition OR
368
+ * The type of {literalArgument} must be coercible to type of the argument definition
369
369
370
370
** Explanatory Text **
371
371
@@ -374,7 +374,7 @@ literal is being passed to.
374
374
375
375
This means either
376
376
* the types must match equally or
377
- * the types must be coercable .
377
+ * the types must be coercible .
378
378
379
379
For example, an Int can be coerced into a Float.
380
380
@@ -388,7 +388,7 @@ fragment coercedIntIntoFloatArg on Arguments {
388
388
}
389
389
```
390
390
391
- An uncoerceable conversion, is string to int. Therefore, the
391
+ An incoercible conversion, is string to int. Therefore, the
392
392
following example is invalid.
393
393
394
394
``` !graphql
@@ -575,7 +575,7 @@ fragment nameFragment on Dog { name }
575
575
* {DetectCycles(fragmentDefinition, visited)}
576
576
577
577
{DetectCycles(fragmentDefinition, visited)} :
578
- * Let {spreads} be all fragment spread descendents of {fragmentDefinition}
578
+ * Let {spreads} be all fragment spread descendants of {fragmentDefinition}
579
579
* For each {spread} in {spreads}
580
580
* {visited} must not contain {spread}
581
581
* Let {nextVisited} be the set including {spread} and members of {visited}
@@ -746,7 +746,7 @@ can also never return meaningful results, making it invalid.
746
746
747
747
##### Abstract Spreads in Abstract Scope
748
748
749
- Union or interfaces fragments can be used within eachother . As long as there
749
+ Union or interfaces fragments can be used within each other . As long as there
750
750
exists at least * one* object type that exists in the intersection of the
751
751
possible types of the scope and the spread, the spread is considered valid.
752
752
@@ -799,13 +799,13 @@ usage of a directive, the directive must be available on that server.
799
799
* {directiveUse} must have an argument
800
800
* Let {argumentType} be the type of argument supplied to {directiveUse}
801
801
* {argumentType} and {directiveType} must be the same or {argumentType} must
802
- be coercable to {directiveType}
802
+ be coercible to {directiveType}
803
803
804
804
** Explanatory Text **
805
805
806
806
Directive arguments follow similar rules to arguments on fields. Much like
807
807
field arguments, arguments to directives must be of the same type or
808
- coercable to input type of the directive type.
808
+ coercible to input type of the directive type.
809
809
810
810
Directives arguments differ from field arguments insofar as they can
811
811
be used without a provided argument. If the type of directive is not non-null,
@@ -852,7 +852,7 @@ validation
852
852
```
853
853
854
854
Default values must be compatible with the types of variables.
855
- Types much match or they must be coercable to the type.
855
+ Types much match or they must be coercible to the type.
856
856
857
857
Non-matching types fail, such as in the following example:
858
858
@@ -862,7 +862,7 @@ Non-matching types fail, such as in the following example:
862
862
}
863
863
```
864
864
865
- However if a type is coerceable the query will pass validation.
865
+ However if a type is coercible the query will pass validation.
866
866
867
867
For example:
868
868
@@ -933,7 +933,7 @@ query VariableIsDefined($atOtherHomes: Boolean) {
933
933
934
934
is valid . ${ atOtherHomes } is defined by the operation .
935
935
936
- By constract the following query is invalid :
936
+ By contrast the following query is invalid :
937
937
938
938
```!graphql
939
939
query VariableIsNotDefined {
@@ -1194,4 +1194,4 @@ Query ListToNonNullList($booleanList: [Boolean]) {
1194
1194
1195
1195
This would fail validation because a `[T ]` cannot be passed to a `[T ]!`.
1196
1196
1197
- Similarily a `[T ]` cannot be passed to a `[T !]`.
1197
+ Similarly a `[T ]` cannot be passed to a `[T !]`.
0 commit comments