-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Description
The IntrospectionInterfaceType includes the possibleTypes field, but when we call buildClientSchema with the introspection result provided, the possibleType is not used
graphql-js/src/utilities/buildClientSchema.ts
Lines 246 to 255 in 1bf71ee
| function buildInterfaceDef( | |
| interfaceIntrospection: IntrospectionInterfaceType, | |
| ): GraphQLInterfaceType { | |
| return new GraphQLInterfaceType({ | |
| name: interfaceIntrospection.name, | |
| description: interfaceIntrospection.description, | |
| interfaces: () => buildImplementationsList(interfaceIntrospection), | |
| fields: () => buildFieldDefMap(interfaceIntrospection), | |
| }); | |
| } |
This information, however, is useful for static analysis that doesn't require an executable schema. Does it make sense to provide isTypeOf during buildClientSchema for interface types ?
Metadata
Metadata
Assignees
Labels
No labels