Skip to content

Commit 7ae359b

Browse files
committed
fix build
1 parent 1820687 commit 7ae359b

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

spec/Section 3 -- Type System.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,9 +1931,11 @@ type ExampleType {
19311931
```
19321932

19331933
### @defer
1934+
19341935
```graphql
19351936
directive @defer(label: String, if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT
19361937
```
1938+
19371939
The `@defer` directive may be provided for fragment spreads and inline fragments to
19381940
inform the executor to delay the execution of the current fragment to indicate
19391941
deprioritization of the current fragment. A query with `@defer` directive will cause
@@ -1957,13 +1959,16 @@ fragment someFragment on User {
19571959
```
19581960

19591961
### @stream
1962+
19601963
```graphql
19611964
directive @stream(label: String, initialCount: Int!, if: Boolean) on FIELD
19621965
```
1966+
19631967
The `@stream` directive may be provided for a field of `List` type so that the
19641968
backend can leverage technology such as asynchronous iterators to provide a partial
19651969
list in the initial response, and additional list items in subsequent responses.
19661970
`@include` and `@skip` take presedence over `@stream`.
1971+
19671972
```graphql example
19681973
query myQuery($shouldDefer: Boolean) {
19691974
user {
@@ -1972,5 +1977,4 @@ query myQuery($shouldDefer: Boolean) {
19721977
}
19731978
}
19741979
}
1975-
19761980
```

spec/Section 6 -- Execution.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ DeferFragment(objectType, objectValue, fragmentSelectionSet, parentPath):
578578

579579

580580
#### Deferred Fragment Record
581+
581582
**Formal Specification**
582583
Let {deferredFragment} be an inline fragment or fragment spread with `@defer` provided.
583584
Deferred Fragment Record is a structure containing:
@@ -592,7 +593,7 @@ CreateDeferredFragmentRecord(label, objectType, objectValue, fragmentSelectionSe
592593
* Construct a deferred fragment record based on the parameters passed in.
593594

594595
ResolveDeferredFragmentRecord(deferredFragmentRecord, variableValues, subsequentPayloads):
595-
* Let {label, objectType, objectValue, fragmentSelectionSet, path} be the corresponding fields
596+
* Let {label}, {objectType}, {objectValue}, {fragmentSelectionSet}, {path} be the corresponding fields
596597
in the deferred fragment record structure.
597598
* Let {payload} be the result of calling {ExecuteSelectionSet(fragmentSelectionSet, objectType, objectValue, variableValues, subsequentPayloads, path)}.
598599
* Add an entry to {payload} named `label` with the value {label}.
@@ -732,6 +733,7 @@ Unresolved items in the iterator will be stored in a stream record which the exe
732733
resumes to execute after the initial execution finishes.
733734

734735
#### Stream Record
736+
735737
**Formal Specification**
736738
Let {streamField} be a list field with a `@stream` directive provided.
737739
A Stream Record is a structure containing:
@@ -747,10 +749,10 @@ CreateStreamRecord(label, initialCount, iterator, resolvedItems, index, fields,
747749
* Construct a stream record based on the parameters passed in.
748750

749751
ResolveStreamRecord(streamRecord, variableValues, subsequentPayloads):
750-
* Let {label, iterator, resolvedItems, index, path, fields, innerType} be the correspondent fields on
751-
the Stream Record structure.
752-
* Remove the first entry from {resolvedItem}, let the entry be {item}. If {resolvedItem} is empty,
753-
retrieve more items from {iterator}:
752+
* Let {label}, {iterator}, {resolvedItems}, {index}, {path}, {fields},
753+
{innerType} be the correspondent fields on the Stream Record structure.
754+
* Remove the first entry from {resolvedItem}, let the entry be {item}. If
755+
{resolvedItem} is empty, retrieve more items from {iterator}:
754756
* Append {index} to {path}.
755757
* Increment {index}.
756758
* Let {payload} be the result of calling CompleteValue(innerType, fields, item, variableValues, subsequentPayloads, path)}.

0 commit comments

Comments
 (0)