You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IntrospectionInterfaceType includes the possibleTypes field, but when we call buildClientSchema with the introspection result provided, the possibleType is not used
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 ?
The text was updated successfully, but these errors were encountered:
The introspection result contains bidirectional data, ie interfaces report which concrete types implement them and object types report which interfaces they implement. But when creating a schema, only the latter is required, and the rest is calculated.
On that, we appear to be agreed! But I am afraid I do not yet understand what you are suggesting should be different! Perhaps you are suggesting that some of this (re)calculation can be avoided when creating a schema directly from an introspection result, speeding up the process?
That might be an interesting optimization. Is that tho what you are suggesting?
The
IntrospectionInterfaceType
includes thepossibleTypes
field, but when we callbuildClientSchema
with the introspection result provided, thepossibleType
is not usedgraphql-js/src/utilities/buildClientSchema.ts
Lines 246 to 255 in 1bf71ee
This information, however, is useful for static analysis that doesn't require an executable schema. Does it make sense to provide
isTypeOf
duringbuildClientSchema
for interface types ?The text was updated successfully, but these errors were encountered: