Skip to content

Commit c894ef1

Browse files
committed
change initial_count to initialCount
1 parent 7aa9b34 commit c894ef1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

spec/Section 3 -- Type System.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,7 +1950,7 @@ fragment someFragment on User {
19501950

19511951
### @stream
19521952
```graphql
1953-
directive @stream(label: String!, initial_count: Int!, if: Boolean) on FIELD
1953+
directive @stream(label: String!, initialCount: Int!, if: Boolean) on FIELD
19541954
```
19551955
The `@stream` directive may be provided for a field of `List` type so that the
19561956
backend can leverage technology such asynchronous iterators to provide a partial
@@ -1960,7 +1960,7 @@ list in the initial response, and additional list items in subsequent responses.
19601960
query myQuery($shouldDefer: Boolean) {
19611961
user {
19621962
friends(first: 10) {
1963-
nodes @stream(label: "friendsStream", initial_count: 5)
1963+
nodes @stream(label: "friendsStream", initialCount: 5)
19641964
}
19651965
}
19661966
}

spec/Section 6 -- Execution.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ ExecuteField(objectType, objectValue, fieldType, fields, variableValues, subsequ
607607
* Let {fieldName} be the field name of {field}.
608608
* Let {argumentValues} be the result of {CoerceArgumentValues(objectType, field, variableValues)}
609609
* If {field} provides the directive `@stream`, let {streamDirective} be that directive.
610-
* Let {initialCount} be the value or variable provided to {streamDirective}'s {initial_count} argument.
610+
* Let {initialCount} be the value or variable provided to {streamDirective}'s {initialCount} argument.
611611
* Let {resolvedValue} be {ResolvedFieldGenerator(objectType, objectValue, fieldName, argumentValues, initialCount)}.
612612
* Let {result} be the result of calling {CompleteValue(fieldType, fields, resolvedValue, variableValues, subsequentPayloads, parentPath)}.
613613
* Append {fieldName} to the {path} field of every {subsequentPayloads}.
@@ -721,7 +721,7 @@ to the expected return type. If the return type is another Object type, then
721721
the field execution process continues recursively. In the case where a value
722722
returned for a list type field is an iterator due to `@stream` specified on the
723723
field, value completition iterates over the iterator until the number of items
724-
yield by the iterator satisfies `initial_count` specified on the `@stream` directive.
724+
yield by the iterator satisfies `initialCount` specified on the `@stream` directive.
725725
Unresolved items in the iterator will be stored in a stream record which the executor
726726
resumes to execute after the initial execution finishes.
727727

@@ -769,7 +769,7 @@ CompleteValue(fieldType, fields, result, variableValues, subsequentPayloads, par
769769
* Let {field} be thte first entry in {fields}.
770770
* Let {innerType} be the inner type of {fieldType}.
771771
* Let {streamDirective} be the `@stream` directived provided on {field}.
772-
* Let {initialCount} be the value or variable provided to {streamDirective}'s {initial_count} argument.
772+
* Let {initialCount} be the value or variable provided to {streamDirective}'s {initialCount} argument.
773773
* Let {label} be the value or variable provided to {streamDirective}'s {label} argument.
774774
* Let {resolvedItems} be an empty list
775775
* For each {members} in {result}:

0 commit comments

Comments
 (0)