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

GraphQLErrorHandler not working after updating from 6.0.1 to 7.0.1

Open bbaret opened this issue 6 years ago • 1 comments

I updated my project from 6.0.1 to 7.0.1 (which makes me renaming some imports from com.coxautodev.graphql.tools.* to graphql.kickstart.tools.* by the way).

Now my GraphQLErrorHandler doesn't work, the default one (DefaultGraphQLErrorHandler) is used instead.

Here is how it looks like :

@Component
public class MyGraphQLErrorHandler implements GraphQLErrorHandler {
    @Override
    public List<GraphQLError> processErrors(List<GraphQLError> errors) {
        // This code is never called
    }
}

Any suggestion ?

bbaret avatar Apr 10 '20 07:04 bbaret

Please search closed issues too before raising an issue. Fix is already part of next release #379. You could use the snapshot version in the meantime if you want (see README how).

oliemansm avatar Apr 10 '20 07:04 oliemansm