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
This leads to: Caused by: graphql.schema.validation.InvalidSchemaException: invalid schema:
object type 'Dog' does not implement interface 'Animal' because field 'traits' is defined as '[MammalTrait]' type and not as '[Trait]' type
The text was updated successfully, but these errors were encountered:
KammererTob
added a commit
to KammererTob/graphql-java
that referenced
this issue
Oct 14, 2020
With v15.0 and the support for interfaces implementing interfaces it seems like the TypesImplementInterfaces fails in some scenarios. This line:
https://github.com/graphql-java/graphql-java/blob/master/src/main/java/graphql/schema/validation/TypesImplementInterfaces.java#L175
only works when one is of type
GraphQLObjectType
and the other ofGraphQLInterfaceType
. There can be cases where both are interfaces now.This leads to:
Caused by: graphql.schema.validation.InvalidSchemaException: invalid schema:
object type 'Dog' does not implement interface 'Animal' because field 'traits' is defined as '[MammalTrait]' type and not as '[Trait]' type
The text was updated successfully, but these errors were encountered: