File tree 2 files changed +5
-7
lines changed 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1063,6 +1063,8 @@ function completeListValue(
1063
1063
exeContext . schema . __experimentalStream &&
1064
1064
stream &&
1065
1065
stream . if !== false &&
1066
+ typeof stream . label === 'string' &&
1067
+ typeof stream . initial_count === 'number' &&
1066
1068
index >= stream . initial_count
1067
1069
) {
1068
1070
const patchErrors = [ ] ;
Original file line number Diff line number Diff line change 2
2
3
3
import { $$asyncIterator } from 'iterall' ;
4
4
5
- import { type ObjMap } from '../jsutils/ObjMap' ;
6
5
import { type Path , pathToArray } from '../jsutils/Path' ;
7
6
import { type PromiseOrValue } from '../jsutils/PromiseOrValue' ;
8
7
import isPromise from '../jsutils/isPromise' ;
@@ -16,10 +15,7 @@ export class Dispatcher {
16
15
this . _patches = [ ] ;
17
16
}
18
17
19
- execute (
20
- fn : ( ) = > PromiseOrValue < ObjMap < mixed >> ,
21
- errors : Array < GraphQLError > ,
22
- ) {
18
+ execute ( fn : ( ) = > PromiseOrValue < mixed > , errors : Array < GraphQLError > ) {
23
19
try {
24
20
return fn ( ) ;
25
21
} catch ( error ) {
@@ -31,7 +27,7 @@ export class Dispatcher {
31
27
add (
32
28
label : string ,
33
29
path : Path | void ,
34
- fn : ( ) = > PromiseOrValue < ObjMap < mixed > >,
30
+ fn : ( ) = > PromiseOrValue < mixed > ,
35
31
errors : Array < GraphQLError > ,
36
32
) {
37
33
this . _patches . push (
@@ -99,7 +95,7 @@ export class Dispatcher {
99
95
100
96
export type ExecutionPatchResult = {
101
97
errors ?: $ReadOnlyArray < GraphQLError > ,
102
- data ?: ObjMap < mixed > | null ,
98
+ data ?: mixed | null ,
103
99
path : $ReadOnlyArray < string | number > ,
104
100
label : string ,
105
101
...
You can’t perform that action at this time.
0 commit comments