Parse fragments inside inlinefragments too

Ref #4283
This commit is contained in:
rijkvanzanten
2021-04-15 10:44:23 -04:00
parent 05841c8c3b
commit 25e7daf433

View File

@@ -1152,7 +1152,7 @@ export class GraphQLService {
}
// Nested relational fields can also contain fragments
if (selection.kind === 'Field' && selection.selectionSet) {
if ((selection.kind === 'Field' || selection.kind === 'InlineFragment') && selection.selectionSet) {
selection.selectionSet.selections = this.replaceFragmentsInSelections(
selection.selectionSet.selections,
fragments