File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,7 @@ export function execute(args: ExecutionArgs): PromiseOrValue<ExecutionResult> {
186
186
// at which point we still log the error and null the parent field, which
187
187
// in this case is the entire response.
188
188
try {
189
- const { operation } = exeContext ;
190
- const result = executeOperation ( exeContext , operation ) ;
189
+ const result = executeOperation ( exeContext ) ;
191
190
if ( isPromise ( result ) ) {
192
191
return result . then (
193
192
( data ) => buildResponse ( data , exeContext . errors ) ,
@@ -325,8 +324,8 @@ export function buildExecutionContext(
325
324
*/
326
325
function executeOperation (
327
326
exeContext : ExecutionContext ,
328
- operation : OperationDefinitionNode ,
329
327
) : PromiseOrValue < ObjMap < unknown > > {
328
+ const { operation } = exeContext ;
330
329
const rootType = exeContext . schema . getRootType ( operation . operation ) ;
331
330
if ( rootType == null ) {
332
331
throw new GraphQLError (
You can’t perform that action at this time.
0 commit comments