@@ -731,7 +731,7 @@ export function buildResolveInfo(
731
731
// The resolve function's optional fourth argument is a collection of
732
732
// information about the current execution state.
733
733
return {
734
- fieldName : fieldNodes [ 0 ] . name . value ,
734
+ fieldName : fieldDef . name ,
735
735
fieldNodes,
736
736
returnType : fieldDef . type ,
737
737
parentType,
@@ -1171,7 +1171,6 @@ function completeObjectValue(
1171
1171
exeContext ,
1172
1172
returnType ,
1173
1173
fieldNodes ,
1174
- info ,
1175
1174
path ,
1176
1175
result ,
1177
1176
) ;
@@ -1187,7 +1186,6 @@ function completeObjectValue(
1187
1186
exeContext ,
1188
1187
returnType,
1189
1188
fieldNodes,
1190
- info,
1191
1189
path,
1192
1190
result,
1193
1191
) ;
@@ -1208,7 +1206,6 @@ function collectAndExecuteSubfields(
1208
1206
exeContext : ExecutionContext ,
1209
1207
returnType : GraphQLObjectType ,
1210
1208
fieldNodes : $ReadOnlyArray < FieldNode > ,
1211
- info : GraphQLResolveInfo ,
1212
1209
path : ResponsePath ,
1213
1210
result : mixed ,
1214
1211
) : MaybePromise < ObjMap < mixed >> {
@@ -1260,7 +1257,7 @@ function defaultResolveTypeFn(
1260
1257
context : mixed ,
1261
1258
info : GraphQLResolveInfo ,
1262
1259
abstractType : GraphQLAbstractType ,
1263
- ) : ? GraphQLObjectType | string | Promise < ?GraphQLObjectType | string > {
1260
+ ) : MaybePromise < ?GraphQLObjectType | string > {
1264
1261
// First, look for `__typename`.
1265
1262
if (
1266
1263
value !== null &&
0 commit comments