Skip to content

Commit f6fd3cf

Browse files
committed
delay procesing discovered fragments
1 parent d4c5449 commit f6fd3cf

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/validation/rules/OverlappingFieldsCanBeMergedRule.ts

+10-9
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,6 @@ function findConflictsWithinSelectionSet(
207207
discoveredFragments,
208208
);
209209

210-
processDiscoveredFragments(
211-
context,
212-
conflicts,
213-
cachedFieldsAndFragmentNames,
214-
comparedFragmentPairs,
215-
false,
216-
fieldMap,
217-
discoveredFragments,
218-
);
219210
// (C) Then compare this fragment with all other fragments found in this
220211
// selection set to collect conflicts between fragments spread together.
221212
// This compares each item in the list of fragment names to every other
@@ -232,6 +223,16 @@ function findConflictsWithinSelectionSet(
232223
);
233224
}
234225
}
226+
227+
processDiscoveredFragments(
228+
context,
229+
conflicts,
230+
cachedFieldsAndFragmentNames,
231+
comparedFragmentPairs,
232+
false,
233+
fieldMap,
234+
discoveredFragments,
235+
);
235236
}
236237
return conflicts;
237238
}

0 commit comments

Comments
 (0)