File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
import { inspect } from '../jsutils/inspect' ;
2
- import { invariant } from '../jsutils/invariant' ;
3
2
import { isAsyncIterable } from '../jsutils/isAsyncIterable' ;
4
3
import { isPromise } from '../jsutils/isPromise' ;
5
4
import type { Maybe } from '../jsutils/Maybe' ;
@@ -108,11 +107,10 @@ function toNormalizedArgs(args: BackwardsCompatibleArgs): ExecutionArgs {
108
107
return firstArg ;
109
108
}
110
109
111
- invariant ( args [ 1 ] != null , 'Must provide document.' ) ;
112
-
113
110
return {
114
111
schema : firstArg ,
115
- document : args [ 1 ] ,
112
+ // FIXME: when underlying TS bug fixed, see https://github.com/microsoft/TypeScript/issues/31613
113
+ document : args [ 1 ] as DocumentNode ,
116
114
rootValue : args [ 2 ] ,
117
115
contextValue : args [ 3 ] ,
118
116
variableValues : args [ 4 ] ,
You can’t perform that action at this time.
0 commit comments