Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9877

Schema related errors are not captured and returned as a GraphQL error response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • GraphQL Core 0.0.6
    • GraphQL Core 0.0.8
    • GraphQL
    • 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

       

      [0] http://spec.graphql.org/June2018/#sec-Errors

      Attachments

        Activity

          People

            bdelacretaz Bertrand Delacretaz
            jasghar Jabran Asghar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: