Closed shevek closed 4 years ago
GraphQLAnnotations.java:
public GraphQLObjectType object(Class<?> object) throws GraphQLAnnotationsException {
It's legitimate for this to be a GraphQLUnionType, which does not extend GraphQLObjectType. The sub-method being called has type <T [extends ...]> T
<T [extends ...]> T
but the method object generates only GraphQLObjectTypes, so creating a GraphQLUnion using this method is incorrect
GraphQLObjectType
GraphQLUnion
Yes, but an unadorned CCE isn't the most helpful way to tell the user that.
GraphQLAnnotations.java:
It's legitimate for this to be a GraphQLUnionType, which does not extend GraphQLObjectType. The sub-method being called has type
<T [extends ...]> T