export interface IntrospectionNamedTypeRef<
T extends IntrospectionType = IntrospectionType,
> {
readonly kind: T['kind'];
readonly name: string;
}
This means that copying the result of the querying a GQL API with the introspection query as JSON and trying to assign to IntrospectionQuery will fail with:
getIntrospectionQueryonly requests thenamefield from the rootqueryTypeobject(https://github.com/graphql/graphql-js/blob/6e48d16f92b9a6df8638b1486354c6be2537033b/src/utilities/getIntrospectionQuery.ts)
yet the
IntrospectionQuerydatatype definesqueryTypeasIntrospectionNamedTypeRef(https://github.com/graphql/graphql-js/blob/main/src/utilities/getIntrospectionQuery.ts#L167) which requireskindas wellThis means that copying the result of the querying a GQL API with the introspection query as JSON and trying to assign to
IntrospectionQuerywill fail with: