Skip to content

Commit 38580f5

Browse files
committed
fix execution test
1 parent f5107e9 commit 38580f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/execution/execute.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,10 +1347,13 @@ function _collectSubfields(
13471347
returnType: GraphQLObjectType,
13481348
fieldNodes: $ReadOnlyArray<FieldNode>,
13491349
): FieldsAndPatches {
1350-
let subFieldsAndPatches = {};
13511350
const subFieldNodes = Object.create(null);
13521351
const visitedFragmentNames = Object.create(null);
13531352
const subPatches = [];
1353+
let subFieldsAndPatches = {
1354+
fields: subFieldNodes,
1355+
patches: subPatches,
1356+
};
13541357

13551358
for (const node of fieldNodes) {
13561359
if (node.selectionSet) {

0 commit comments

Comments
 (0)