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

Closed
jonapgar-groupby opened this issue Jun 9, 2023 · 0 comments · Fixed by #4226
Closed

getIntrospectionQuery result does not match the IntrospectionQuery type #3909

jonapgar-groupby opened this issue Jun 9, 2023 · 0 comments · Fixed by #4226

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
JoviDeCroock added a commit that referenced this issue Oct 11, 2024
Supersedes #3910
Fixes #3909
Fixes #3409

This puts the Selection-set in line with the expected type
JoviDeCroock added a commit that referenced this issue Oct 13, 2024
erikwrede pushed a commit to erikwrede/graphql-js that referenced this issue Oct 17, 2024
Supersedes graphql/graphql-js#3910
Fixes graphql/graphql-js#3909
Fixes graphql/graphql-js#3409

This puts the Selection-set in line with the expected type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants
@jonapgar-groupby and others