@@ -646,7 +646,9 @@ function executeField(
646646 const { validatedExecutionArgs, abortSignalListener } = exeContext ;
647647 const { schema, contextValue, variableValues, hideSuggestions, abortSignal } =
648648 validatedExecutionArgs ;
649- const fieldName = fieldDetailsList [ 0 ] . node . name . value ;
649+ const firstDetails = fieldDetailsList [ 0 ] ;
650+ const firstNode = firstDetails . node ;
651+ const fieldName = firstNode . name . value ;
650652 const fieldDef = schema . getField ( parentType , fieldName ) ;
651653 if ( ! fieldDef ) {
652654 return ;
@@ -671,9 +673,9 @@ function executeField(
671673 // TODO: find a way to memoize, in case this field is within a List type.
672674 const args = getArgumentValues (
673675 fieldDef ,
674- fieldDetailsList [ 0 ] . node ,
676+ firstNode ,
675677 variableValues ,
676- fieldDetailsList [ 0 ] . fragmentVariableValues ,
678+ firstDetails . fragmentVariableValues ,
677679 hideSuggestions ,
678680 ) ;
679681
@@ -1933,7 +1935,9 @@ function executeSubscription(
19331935 FieldDetailsList ,
19341936 ] ;
19351937 const [ responseName , fieldDetailsList ] = firstRootField ;
1936- const fieldName = fieldDetailsList [ 0 ] . node . name . value ;
1938+ const firstFieldDetails = fieldDetailsList [ 0 ] ;
1939+ const firstNode = firstFieldDetails . node ;
1940+ const fieldName = firstNode . name . value ;
19371941 const fieldDef = schema . getField ( rootType , fieldName ) ;
19381942
19391943 const fieldNodes = fieldDetailsList . map ( ( fieldDetails ) => fieldDetails . node ) ;
@@ -1962,9 +1966,9 @@ function executeSubscription(
19621966 // variables scope to fulfill any variable references.
19631967 const args = getArgumentValues (
19641968 fieldDef ,
1965- fieldNodes [ 0 ] ,
1969+ firstNode ,
19661970 variableValues ,
1967- fieldDetailsList [ 0 ] . fragmentVariableValues ,
1971+ firstFieldDetails . fragmentVariableValues ,
19681972 hideSuggestions ,
19691973 ) ;
19701974
0 commit comments