Skip to content

Commit 94de88d

Browse files
committed
spelling updates
1 parent 125fb6c commit 94de88d

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

spec/Section 3 -- Type System.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,8 +1935,8 @@ The `@defer` directive may be provided for fragment spreads and inline fragments
19351935
inform the executor to delay the execution of the current fragment to indicate
19361936
deprioritization of the current fragment. A query with `@defer` directive will cause
19371937
the request to potentially return multiple responses, where non-deferred data is
1938-
delivered in the initial response and data deferred delivered in a subsequent response.
1939-
`@include` and `@skip` take presedence over `@defer`.
1938+
delivered in the initial response and data deferred is delivered in a subsequent
1939+
response. `@include` and `@skip` take presedence over `@defer`.
19401940

19411941
```graphql example
19421942
query myQuery($shouldDefer: Boolean) {
@@ -1958,7 +1958,7 @@ fragment someFragment on User {
19581958
directive @stream(label: String!, initialCount: Int!, if: Boolean) on FIELD
19591959
```
19601960
The `@stream` directive may be provided for a field of `List` type so that the
1961-
backend can leverage technology such asynchronous iterators to provide a partial
1961+
backend can leverage technology such as asynchronous iterators to provide a partial
19621962
list in the initial response, and additional list items in subsequent responses.
19631963
`@include` and `@skip` take presedence over `@stream`.
19641964
```graphql example

spec/Section 6 -- Execution.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ request is determined by the result of executing this operation according to the
2626
"Executing Operations” section below.
2727

2828
ExecuteRequest(schema, document, operationName, variableValues, initialValue):
29-
Note: the execution assumes implementing language support coroutines.
29+
Note: the execution assumes implementing language supports coroutines.
3030
Alternatively, the socket can provide a write buffer pointer to allow {ExecuteRequest()}
3131
to directly write payloads into the buffer.
3232
* Let {operation} be the result of {GetOperation(document, operationName)}.
@@ -337,7 +337,7 @@ response map.
337337
ExecuteSelectionSet(selectionSet, objectType, objectValue, variableValues, subsequentPayloads, parentPath):
338338

339339
* If {subsequentPayloads} is not provided, initialize it to the empty set.
340-
* If {parentPath} is not provided, initialize it to an emtpy list.
340+
* If {parentPath} is not provided, initialize it to an empty list.
341341
* Let {groupedFieldSet} be the result of
342342
{CollectFields(objectType, objectValue, selectionSet, variableValues, subsequentPayloads, parentPath)}.
343343
* Initialize {resultMap} to an empty ordered map.
@@ -468,11 +468,11 @@ Before execution, the selection set is converted to a grouped field set by
468468
calling {CollectFields()}. Each entry in the grouped field set is a list of
469469
fields that share a response key (the alias if defined, otherwise the field
470470
name). This ensures all fields with the same response key included via
471-
referenced fragments are executed at the same time. A deferred seclection set's
472-
fields will not be included in the grouped field set. Rather, a record
473-
representing the deferred fragment and addition context will be stored in a
474-
list. The executor revisits and resume execution for the list of deferred
475-
fragment records after the initial execution finishes.
471+
referenced fragments are executed at the same time. A deferred selection
472+
set's fields will not be included in the grouped field set. Rather, a record
473+
representing the deferred fragment and additional context will be stored in a
474+
list. The executor revisits and resumes execution for the list of deferred
475+
fragment records after the initial execution is initiated.
476476

477477

478478
As an example, collecting the fields of this selection set would collect two
@@ -686,16 +686,16 @@ This is exposed via {ResolveFieldValue}, which produces a value for a given
686686
field on a type for a real value. In addition, {ResolveFieldGenerator} will be
687687
exposed to produce an iterator for a field with `List` return type.
688688
The internal system may optionally define a generator function. In the case
689-
where the generator is not defined, the GraphQL executor provide a default generator.
690-
For example, a trivial generator that yield the entire list upon the first iteration.
689+
where the generator is not defined, the GraphQL executor provides a default generator.
690+
For example, a trivial generator that yields the entire list upon the first iteration.
691691

692692
As an example, a {ResolveFieldValue} might accept the {objectType} `Person`, the {field}
693693
{"soulMate"}, and the {objectValue} representing John Lennon. It would be
694694
expected to yield the value representing Yoko Ono.
695695

696696
A {ResolveFieldGenerator} might accept the {objectType} `MusicBand`, the {field}
697697
{"members"}, and the {objectValue} representing Beatles. It would be expected to yield
698-
a iterator of values representing, John Lennon, Paul, McCartney, Ringo Starr and
698+
a iterator of values representing, John Lennon, Paul McCartney, Ringo Starr and
699699
George Harrison.
700700

701701
ResolveFieldValue(objectType, objectValue, fieldName, argumentValues):
@@ -705,7 +705,7 @@ ResolveFieldValue(objectType, objectValue, fieldName, argumentValues):
705705

706706
ResolveFieldGenerator(objectType, objectValue, fieldName, argumentValues, initialCount):
707707
* If {objectType} provide an internal function {generatorResolver} for
708-
generating partitially resolved valueof a list field named {fieldName}:
708+
generating partitially resolved value of a list field named {fieldName}:
709709
* Let {generatorResolver} be the internal function.
710710
* Return the iterator from calling {generatorResolver}, providing
711711
{objectValue}, {argumentValues} and {initialCount}.
@@ -716,7 +716,7 @@ Note: It is common for {resolver} to be asynchronous due to relying on reading
716716
an underlying database or networked service to produce a value. This
717717
necessitates the rest of a GraphQL executor to handle an asynchronous
718718
execution flow. In addition, a commom implementation of {generator} is to leverage
719-
asynchronous iterators or asynchronous generators provided by many programing languages.
719+
asynchronous iterators or asynchronous generators provided by many programming languages.
720720

721721
### Value Completion
722722

@@ -769,8 +769,8 @@ CompleteValue(fieldType, fields, result, variableValues, subsequentPayloads, par
769769
* If {result} is {null} (or another internal value similar to {null} such as
770770
{undefined} or {NaN}), return {null}.
771771
* If {fieldType} is a List type:
772-
* If {result} is a iterator:
773-
* Let {field} be thte first entry in {fields}.
772+
* If {result} is an iterator:
773+
* Let {field} be the first entry in {fields}.
774774
* Let {innerType} be the inner type of {fieldType}.
775775
* Let {streamDirective} be the `@stream` directived provided on {field}.
776776
* Let {initialCount} be the value or variable provided to {streamDirective}'s {initialCount} argument.
@@ -784,7 +784,7 @@ CompleteValue(fieldType, fields, result, variableValues, subsequentPayloads, par
784784
* Let {streamRecord} be the result of calling {CreateStreamRecord(label, initialCount, result, remainingItems, initialCount, fields, innerType, parentPath)}
785785
* Append {streamRecord} to {subsequentPayloads}.
786786
* Let {result} be {initialItems}.
787-
* Exit For each loop.
787+
* Exit for each loop.
788788
* If {result} is not a collection of values, throw a field error.
789789
* Let {innerType} be the inner type of {fieldType}.
790790
* Return a list where each list item is the result of calling

0 commit comments

Comments
 (0)