Netflix / dgs-framework

GraphQL for Java with Spring Boot made easy.
https://netflix.github.io/dgs
Apache License 2.0
3.06k stars 295 forks source link

Convert execution aborted errors to a bad request. #1916

Closed srinivasankavitha closed 4 months ago

srinivasankavitha commented 4 months ago

Pull request checklist

Pull Request type

Changes in this PR

Graphql-java throws an AbortExecution exception when for e.g query depth is exceeded (if query complexity instrumentation is enabled) or during field validation. These need to translate as a bad request rather than a service error.