Fix __typename selection for functions in GraphQL (#16413)

This commit is contained in:
ian
2022-11-12 09:32:00 +08:00
committed by GitHub
parent cc55d5608e
commit 8e400504ea

View File

@@ -1596,6 +1596,7 @@ export class GraphQLService {
for (const subSelection of selection.selectionSet.selections) {
if (subSelection.kind !== 'Field') continue;
if (subSelection.name!.value.startsWith('__')) continue;
children.push(`${subSelection.name!.value}(${rootField})`);
}
} else {