spring-graphql-common icon indicating copy to clipboard operation
spring-graphql-common copied to clipboard

@GraphQLUnionType not working with current trunk version of graphql-java

Open ayhanap opened this issue 9 years ago • 0 comments

This commit https://github.com/graphql-java/graphql-java/commit/c3fbc2d594766b445f975a63154ce2867d03c93d of graphql-java breaks the @GraphQLUnionType annotation at the line https://github.com/oembedler/spring-graphql-common/blob/f5b699f4073eec50b18e71bb22ae085500ce780a/src/main/java/com/oembedler/moon/graphql/engine/dfs/GraphQLSchemaDfsTraversal.java#L163 with Caused by: java.lang.NoSuchMethodError: graphql.schema.GraphQLUnionType$Builder.possibleTypes([Lgraphql/schema/GraphQLType;)Lgraphql/schema/GraphQLUnionType$Builder; Apperantly they changed the method signature. With v2.0.0 of graphql-java this just works fine. But as a future problem, I'm filing this issue. Also obvious possible fix may work with both versions since GraphQLObjectType implements GraphQLType.

ayhanap avatar Jun 29 '16 17:06 ayhanap