Skip to content

Allow custom ExecutionStrategy to use DataFetcherExceptionResolver chain #552

Closed
@JamesPeters98

Description

@JamesPeters98

I've found a bug that occurs when using DataFetcherExceptionResolverAdapter and a custom QueryExecutionStrategy.

For some reason, if you return a failed future the exception just gets bubbled up without passing through DataFetcherExceptionResolverAdapter.

I've got a reproducible example here: https://github.com/JamesPeters98/SpringGraphQLErrorTest/

There is a Query and Mutation example. The mutation gets resolved correctly:

image

But not the query:

image

If you remove the custom QueryExecutionStrategy the exception gets resolved

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions