Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
GraphQL Core 0.0.6
-
None
Description
Problem:
GraphQL query execution problems are captured by SLING-9847 and SLING-9870, but errors which may occur due to schema being not valid (for any reason), are still not captured. In such cases, a non standard error response is sent back to client.
Proposed solution:
Capture the errors, and format it according to GraphQL error response specification [0]. Utilize "extensions" JSON property to capture any additional meaningful information.
PR: https://github.com/apache/sling-org-apache-sling-graphql-core/pull/14