Closed
Description
org.springframework.graphql.execution.ExceptionResolversExceptionHandler
is package private, and it's not exposed as a Bean. Clearly it's designed that way.
I'm trying to extend graphql.execution.AsyncExecutionStrategy
and override
@Override
protected CompletableFuture<ExecutionResult> completeValueForEnum(ExecutionContext executionContext, ExecutionStrategyParameters parameters, GraphQLEnumType enumType, Object result)
{
}
to ignore unknown enum values in a class called IgnoreUnknownEnumValueExecutionStrategy
. But the difficulty, without duplicating ExceptionResolversExceptionHandler
, is I could not inject the ExceptionResolversExceptionHandler
instance (which is hidden within the framework) into my IgnoreUnknownEnumValueExecutionStrategy
bean.
Please advise if my use case and question is legitimate. Thanks.