Unable to execute query - Found interface graphql.schema.DataFetchingEnvironment, but class was expected
Closed this issue · 3 comments
ieugen commented
I wrote a simple project with graphql-apigen and Spring and I'm getting the bellow exception. I have attached some files that might help [1].
[1] https://gist.github.com/ieugen/d820b95b72bf34364fb519c80245c505
java.lang.IncompatibleClassChangeError: Found interface graphql.schema.DataFetchingEnvironment, but class was expected
at com.distelli.graphql.ResolverDataFetcher.get(ResolverDataFetcher.java:41)
at graphql.execution.ExecutionStrategy.resolveField(ExecutionStrategy.java:66)
at graphql.execution.SimpleExecutionStrategy.execute(SimpleExecutionStrategy.java:18)
at graphql.execution.Execution.executeOperation(Execution.java:85)
at graphql.execution.Execution.execute(Execution.java:44)
at graphql.GraphQL.execute(GraphQL.java:201)
at graphql.GraphQL.execute(GraphQL.java:166)
at graphql.GraphQL.execute(GraphQL.java:158)
at gr8pi.graphql.core.GraphqlBootstrapTest.bootstrapGraphql(GraphqlBootstrapTest.java:36)
brimworks commented
Yes, we need to update to support 2.4.