Skip to content

Commit d099d56

Browse files
committed
fix build
1 parent b670687 commit d099d56

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

Diff for: spec/Section 3 -- Type System.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1928,9 +1928,11 @@ type ExampleType {
19281928
```
19291929

19301930
### @defer
1931+
19311932
```graphql
19321933
directive @defer(label: String, if: Boolean) on FRAGMENT_SPREAD | INLINE_FRAGMENT
19331934
```
1935+
19341936
The `@defer` directive may be provided for fragment spreads and inline fragments to
19351937
inform the executor to delay the execution of the current fragment to indicate
19361938
deprioritization of the current fragment. A query with `@defer` directive will cause
@@ -1954,13 +1956,16 @@ fragment someFragment on User {
19541956
```
19551957

19561958
### @stream
1959+
19571960
```graphql
19581961
directive @stream(label: String, initialCount: Int!, if: Boolean) on FIELD
19591962
```
1963+
19601964
The `@stream` directive may be provided for a field of `List` type so that the
19611965
backend can leverage technology such as asynchronous iterators to provide a partial
19621966
list in the initial response, and additional list items in subsequent responses.
19631967
`@include` and `@skip` take presedence over `@stream`.
1968+
19641969
```graphql example
19651970
query myQuery($shouldDefer: Boolean) {
19661971
user {
@@ -1969,5 +1974,4 @@ query myQuery($shouldDefer: Boolean) {
19691974
}
19701975
}
19711976
}
1972-
19731977
```

Diff for: spec/Section 6 -- Execution.md

+7-5
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)