mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix __typename selection for functions in GraphQL (#16413)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user