Skip to content

Commit b40d427

Browse files
authored
Fix completeObjectValue call bug
1 parent 1fb45d3 commit b40d427

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/execution/execute.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -951,10 +951,6 @@ function completeAbstractValue(
951951
return runtimeTypePromise.then(resolvedRuntimeType =>
952952
completeObjectValue(
953953
exeContext,
954-
returnType,
955-
fieldNodes,
956-
info,
957-
path,
958954
ensureValidRuntimeType(
959955
resolvedRuntimeType,
960956
exeContext,
@@ -963,17 +959,16 @@ function completeAbstractValue(
963959
info,
964960
result
965961
),
962+
fieldNodes,
963+
info,
964+
path,
966965
result
967966
)
968967
);
969968
}
970969

971970
return completeObjectValue(
972971
exeContext,
973-
returnType,
974-
fieldNodes,
975-
info,
976-
path,
977972
ensureValidRuntimeType(
978973
resolvedRuntimeType,
979974
exeContext,
@@ -982,6 +977,9 @@ function completeAbstractValue(
982977
info,
983978
result
984979
),
980+
fieldNodes,
981+
info,
982+
path,
985983
result
986984
);
987985
}

0 commit comments

Comments
 (0)