Closed robertionut95b closed 1 year ago
I have no experience with GraphQL at all, so this is not something I need. But if you are willing to develop and maintain the feature in such a way that people not using GraphQL are not getting extra dependencies they don't want, then I am willing to review the PR.
A baseline implementation for Spring would require at least spring-graphql.
If this is no issue I might try to invest some time in a PR.
I assume we can add it as an optional dependency
Issued #80, thanks!
Hello!
I think the library would grow even more if considered to include GraphQL error handling. There are a few implementations already for java-graphql and Spring framework (DGS, Kickstart, Spring GraphQL, etc.) but not many offer a simple, highly configurable error handling setup.
The main contract from which all error handlers would start is similar to the current implementation:
The only specific feature would be to implement a specialized bean or extend an ExceptionHandler interface required for the library to work.
Example for DGS:
What do you think about this?