[ 
https://issues.apache.org/jira/browse/SLING-9877?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bertrand Delacretaz closed SLING-9877.
--------------------------------------

> Schema related errors are not captured and returned as a GraphQL error 
> response
> -------------------------------------------------------------------------------
>
>                 Key: SLING-9877
>                 URL: https://issues.apache.org/jira/browse/SLING-9877
>             Project: Sling
>          Issue Type: Bug
>          Components: GraphQL
>    Affects Versions: GraphQL Core 0.0.6
>            Reporter: Jabran Asghar
>            Assignee: Bertrand Delacretaz
>            Priority: Major
>             Fix For: GraphQL Core 0.0.8
>
>
> *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]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to