Skip to content

Commit 7383735

Browse files
committed
Fix spelling errors.
1 parent 28a958e commit 7383735

8 files changed

+35
-35
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ This technical preview contains a draft specification for GraphQL and a referenc
1010
implementation in JavaScript that implements that draft,
1111
[GraphQL.js](https://github.com/graphql/graphql-js).
1212

13-
The reference implemention provides base libraries in javascript that would
13+
The reference implementation provides base libraries in javascript that would
1414
provide the basis for full GraphQL implementations and tools. It is not a fully
1515
standalone GraphQL server that a client developer could use to start
1616
manipulating and querying data. Most importantly it provides no mapping to a
1717
functioning, production-ready backend. The only “backend” we have targeted for
1818
this early preview are in-memory stubs in test cases.
1919

20-
We are releasing this now because after GraphQL was first discussed publically,
20+
We are releasing this now because after GraphQL was first discussed publicly,
2121
many engineers used this information to implement the parts of the system that
22-
we discussed publically. We want to support those engineers by providing both a
22+
we discussed publicly. We want to support those engineers by providing both a
2323
formal specification and a reference implementation for the system as a whole.
2424

2525
To that end the target audience is not the client developer, but those who have
@@ -179,7 +179,7 @@ fields are non-null (since our current implementation has hard-coded data),
179179
we didn't mark them as non-null. One can imagine we would eventually
180180
replace our hardcoded data with a backend service, which might not be
181181
perfectly reliable; by leaving these fields as nullable, we allow
182-
ourselves the flexability to eventually return null to indicate a backend
182+
ourselves the flexibility to eventually return null to indicate a backend
183183
error, while also telling the client that the error occurred.
184184

185185
```

Section 1 -- Overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ platform for tool-building.
3636

3737
GraphQL has a number of design principles:
3838

39-
* **Hierarchal**: Most product development today involves the creation and
39+
* **Hierarchical**: Most product development today involves the creation and
4040
manipulation of view hierarchies. To achieve congruence with the structure
4141
of these applications, a GraphQL query itself is structured hierarchically.
4242
The query is shaped just like the data it returns. It is a natural

Section 2 -- Language.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ the field's name otherwise.
196196
## Input Values
197197

198198
Both field arguments and directives accept input values. Input values can be
199-
specified as a variable or respresented inline as literals. Input values can
199+
specified as a variable or represented inline as literals. Input values can
200200
be scalars, enumerations, or input objects. List and inputs objects may also
201201
contain variables.
202202

@@ -220,7 +220,7 @@ Whitespace is significant within a string.
220220

221221
**Enum Value**
222222

223-
Enum values are respresented as unquoted names (ex. `MOBILE_WEB`). It is
223+
Enum values are represented as unquoted names (ex. `MOBILE_WEB`). It is
224224
recommended that Enum values be "all caps". Enum values are only used in contexts
225225
where the precise enumeration type is known. Therefore it's not necessary
226226
to use the enumeration type name in the literal.

Section 3 -- Type System.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ GraphQL supports two abstract types: interfaces and unions.
4040

4141
An `Interface` defines a list of fields; `Object` types that implement that
4242
interface are guaranteed to implement those fields. Whenever the type system
43-
claims it will return an interface, it will return a valid implementating type.
43+
claims it will return an interface, it will return a valid implementing type.
4444

4545
A `Union` defines a list of possible types; similar to interfaces, whenever the
4646
type system claims a union will be returned, one of the possible types will be
@@ -51,7 +51,7 @@ string returns either null or a singular string. The type system might want to
5151
define that it returns a list of other types; the `List` type is provided for
5252
this reason, and wraps another type. Similarly, the `Non-Null` type wraps
5353
another type, and denotes that the result will never be null. These two types
54-
are refered to as "wrapping types"; non-wrapping types are refered to as
54+
are referred to as "wrapping types"; non-wrapping types are referred to as
5555
"base types". A wrapping type has an underlying "base type", found by
5656
continually unwrapping the type until a base type is found.
5757

@@ -62,7 +62,7 @@ what data is expected from the client in these queries.
6262
### Scalars
6363

6464
As expected by the name, a scalar represents a primitive value in GraphQL.
65-
GraphQL responses take the form of a hierarchal tree; the leaves on these trees
65+
GraphQL responses take the form of a hierarchical tree; the leaves on these trees
6666
are GraphQL scalars.
6767

6868
All GraphQL scalars are representable as strings, though depending on the
@@ -109,7 +109,7 @@ input values, and coercion rules may apply differently depending on which type
109109
of input value is encountered. GraphQL may be parameterized by query variables,
110110
the values of which are often serialized when sent over a transport like HTTP. Since
111111
some common serializations (ex. JSON) do not discriminate between integer
112-
and floating-point values, they are interpretted as an integer input value if
112+
and floating-point values, they are interpreted as an integer input value if
113113
they have an empty fractional part (ex. `1.0`) and otherwise as floating-point
114114
input value.
115115

@@ -229,8 +229,8 @@ values (such as `4.0`), must raise a query error indicating an incorrect type.
229229

230230
### Objects
231231

232-
GraphQL queries are hierarchal and composed, describing a tree of information.
233-
While Scalar types describe the leaf values of these hierarchal queries, Objects
232+
GraphQL queries are hierarchical and composed, describing a tree of information.
233+
While Scalar types describe the leaf values of these hierarchical queries, Objects
234234
describe the intermediate levels.
235235

236236
GraphQL Objects represent a list of named fields, each of which yield a value of
@@ -630,7 +630,7 @@ literals must not be accepted as an enum input and instead raise a query error.
630630
Query variable transport serializations which have a different representation
631631
for non-string symbolic values (for example, [EDN](https://github.com/edn-format/edn))
632632
should only allow such values as enum input values. Otherwise, for most
633-
transport serializations that do not, strings may be interpretted as the enum
633+
transport serializations that do not, strings may be interpreted as the enum
634634
input value with the same name.
635635

636636

Section 4 -- Introspection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ warnings.
7676

7777
### Type Name Introspection
7878

79-
GraphQL supports type name introspection within at any point in a query by the
79+
GraphQL supports type name introspection at any point within a query by the
8080
meta field `__typename: String!` when querying against any Object, Interface,
81-
or Union. It returns the name of the object type currently being queryied.
81+
or Union. It returns the name of the object type currently being queried.
8282

8383
This is most often used when querying against Interface or Union types to
8484
identify which actual type of the possible types has been returned.

Section 5 -- Validation.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Validation
22

3-
GraphQL does not just verify if a request is syntatically correct.
3+
GraphQL does not just verify if a request is syntactically correct.
44

55
Prior to execution, it can also verify that a request is valid
66
within the context of a given GraphQL schema. Validation is primarily
@@ -296,7 +296,7 @@ query directQueryOnUnionWithoutSubFields
296296
* Let {arguments} be the set of argument provided to the {selection}
297297
* Let {targetField} be the target field of a given {selection}
298298
* 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
300300
in the {targetField} with the same name
301301

302302
** Explanatory Text **
@@ -363,9 +363,9 @@ fragment multipleArgsReverseOrder on Arguments {
363363
* Let {arguments} be the set of argument provided to the {selection}
364364
* Let {targetField} be the target field of a given {selection}
365365
* 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
369369

370370
** Explanatory Text **
371371

@@ -374,7 +374,7 @@ literal is being passed to.
374374

375375
This means either
376376
* the types must match equally or
377-
* the types must be coercable.
377+
* the types must be coercible.
378378

379379
For example, an Int can be coerced into a Float.
380380

@@ -388,7 +388,7 @@ fragment coercedIntIntoFloatArg on Arguments {
388388
}
389389
```
390390

391-
An uncoerceable conversion, is string to int. Therefore, the
391+
An incoercible conversion, is string to int. Therefore, the
392392
following example is invalid.
393393

394394
```!graphql
@@ -575,7 +575,7 @@ fragment nameFragment on Dog { name }
575575
* {DetectCycles(fragmentDefinition, visited)}
576576

577577
{DetectCycles(fragmentDefinition, visited)} :
578-
* Let {spreads} be all fragment spread descendents of {fragmentDefinition}
578+
* Let {spreads} be all fragment spread descendants of {fragmentDefinition}
579579
* For each {spread} in {spreads}
580580
* {visited} must not contain {spread}
581581
* Let {nextVisited} be the set including {spread} and members of {visited}
@@ -746,7 +746,7 @@ can also never return meaningful results, making it invalid.
746746

747747
##### Abstract Spreads in Abstract Scope
748748

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
750750
exists at least *one* object type that exists in the intersection of the
751751
possible types of the scope and the spread, the spread is considered valid.
752752

@@ -799,13 +799,13 @@ usage of a directive, the directive must be available on that server.
799799
* {directiveUse} must have an argument
800800
* Let {argumentType} be the type of argument supplied to {directiveUse}
801801
* {argumentType} and {directiveType} must be the same or {argumentType} must
802-
be coercable to {directiveType}
802+
be coercible to {directiveType}
803803

804804
** Explanatory Text **
805805

806806
Directive arguments follow similar rules to arguments on fields. Much like
807807
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.
809809

810810
Directives arguments differ from field arguments insofar as they can
811811
be used without a provided argument. If the type of directive is not non-null,
@@ -852,7 +852,7 @@ validation
852852
```
853853

854854
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.
856856

857857
Non-matching types fail, such as in the following example:
858858

@@ -862,7 +862,7 @@ Non-matching types fail, such as in the following example:
862862
}
863863
```
864864

865-
However if a type is coerceable the query will pass validation.
865+
However if a type is coercible the query will pass validation.
866866

867867
For example:
868868

@@ -933,7 +933,7 @@ query VariableIsDefined($atOtherHomes: Boolean) {
933933

934934
is valid. ${atOtherHomes} is defined by the operation.
935935

936-
By constract the following query is invalid:
936+
By contrast the following query is invalid:
937937

938938
```!graphql
939939
query VariableIsNotDefined {
@@ -1194,4 +1194,4 @@ Query ListToNonNullList($booleanList: [Boolean]) {
11941194

11951195
This would fail validation because a `[T]` cannot be passed to a `[T]!`.
11961196

1197-
Similarily a `[T]` cannot be passed to a `[T!]`.
1197+
Similarly a `[T]` cannot be passed to a `[T!]`.

Section 7 -- Response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ operation if successful, and describes any errors encountered during the
66
request.
77

88
A response may contain both a partial response as well as encountered errors in
9-
the case that an error occured on a field which was replaced with null.
9+
the case that an error occurred on a field which was replaced with null.
1010

1111
## Serialization Format
1212

Section 8 -- Grammar.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Example_param :
7373

7474
A GraphQL document is comprised of several kinds of source tokens defined here
7575
in a lexical grammar and used as terminal symbols in GraphQL's syntactic
76-
grammar. This lexical grammar defines patterns of source characters by specifing
76+
grammar. This lexical grammar defines patterns of source characters by specifying
7777
character patterns in {`monospace`} or as {/regular_expressions/}. Non-terminal
7878
patterns are defined as {Italics}.
7979

@@ -131,8 +131,8 @@ Before every lexical token may be any amount of ignored source characters
131131
such as whitespace and comments. Whitespace, other than within strings, is
132132
not significant.
133133

134-
GraphQL treats comma `,` similarly to whitespace. This ensures that the absense
135-
or presence of a comma does not meaningfully alter the interpretted syntax of
134+
GraphQL treats comma `,` similarly to whitespace. This ensures that the absence
135+
or presence of a comma does not meaningfully alter the interpreted syntax of
136136
the document which is a common user-error in other languages. It also allows for
137137
the stylistic use of trailing commas or line-breaks as delimiters which are
138138
often desired for legibility and maintainability of source code. The use of

0 commit comments

Comments
 (0)