Skip to content

Commit ac1ec27

Browse files
robrichardlilianammmatos
authored andcommitted
fix execution test
1 parent 046ac9f commit ac1ec27

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
@@ -1348,10 +1348,13 @@ function _collectSubfields(
13481348
returnType: GraphQLObjectType,
13491349
fieldNodes: $ReadOnlyArray<FieldNode>,
13501350
): FieldsAndPatches {
1351-
let subFieldsAndPatches = {};
13521351
const subFieldNodes = Object.create(null);
13531352
const visitedFragmentNames = Object.create(null);
13541353
const subPatches = [];
1354+
let subFieldsAndPatches = {
1355+
fields: subFieldNodes,
1356+
patches: subPatches,
1357+
};
13551358

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

0 commit comments

Comments
 (0)