- Notifications
You must be signed in to change notification settings - Fork 328
Description
Hello!
When I try to register my own DataFetcherExceptionResolver in context, using federation annotations as EntityMapping
annotation, FederationSchemaFactory ignores it, because it uses its ExceptionResolver. The reason - FederationSchemaFactory extends AnnotatedControllerDetectionSupport, and it registers only AnnotatedControllerExceptionResolver as single ExceptionResolver. For example using GraphQlSource.Builder, using spring without federation, it registers exception resolvers as list. And when I throw exception under native controller annotations as SchemaMapping
annotation or QueryMapping
annotation, it catches all my exceptions and puts into my custom resolvers.
According to it, under federation annotations I am able to use only GraphQlExceptionHandler
annotation method way
My request is to add supporting list of exception resolvers into FederationSchemaFactory as it did in GraphQlSource.Builder