File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 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> {
186186 // at which point we still log the error and null the parent field, which
187187 // in this case is the entire response.
188188 try {
189- const { operation } = exeContext ;
190- const result = executeOperation ( exeContext , operation ) ;
189+ const result = executeOperation ( exeContext ) ;
191190 if ( isPromise ( result ) ) {
192191 return result . then (
193192 ( data ) => buildResponse ( data , exeContext . errors ) ,
@@ -325,8 +324,8 @@ export function buildExecutionContext(
325324 */
326325function executeOperation (
327326 exeContext : ExecutionContext ,
328- operation : OperationDefinitionNode ,
329327) : PromiseOrValue < ObjMap < unknown > > {
328+ const { operation } = exeContext ;
330329 const rootType = exeContext . schema . getRootType ( operation . operation ) ;
331330 if ( rootType == null ) {
332331 throw new GraphQLError (
You can’t perform that action at this time.
0 commit comments