Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getIntrospectionQuery result does not match the IntrospectionQuery type #3909

Open
jonapgar-groupby opened this issue Jun 9, 2023 · 0 comments · May be fixed by #3910
Open

getIntrospectionQuery result does not match the IntrospectionQuery type #3909

jonapgar-groupby opened this issue Jun 9, 2023 · 0 comments · May be fixed by #3910

Comments

@jonapgar-groupby
Copy link

queryType { name }
mutationType { name }
subscriptionType { name }

The query needs to select kind for each of these in order for the result to match the defined IntrospectionQuery type

readonly queryType: IntrospectionNamedTypeRef<IntrospectionObjectType>;
readonly mutationType: Maybe<
IntrospectionNamedTypeRef<IntrospectionObjectType>
>;
readonly subscriptionType: Maybe<
IntrospectionNamedTypeRef<IntrospectionObjectType>
>;

export interface IntrospectionNamedTypeRef<
T extends IntrospectionType = IntrospectionType,
> {
readonly kind: T['kind'];
readonly name: string;
}

jonapgar-groupby added a commit to jonapgar-groupby/graphql-js that referenced this issue Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@jonapgar-groupby and others