Conversation
|
http://facebook.github.io/graphql/June2018/#sec-Errors We should not be providing default fields that do not conform to the GraphQL spec. |
|
And please keep all changes in this PR, do not close it to open a new one |
|
#23 relates here |
|
Yes, i have added whatever GraphQLError interface is providing the fields. Sample error message --> |
|
Unfortunately |
Created new custom error file to add any additional error properties
|
Yes, you are right. Latest spec is not showing that property but GraphQLError interface from graphql-java artifact has that property. As per your suggestion, I have added one custom error class which supports additional properties now. |
Pull Request Test Coverage Report for Build 42
💛 - Coveralls |
|
So, as mentioned in #22 - one of the most popular GraphQL server libraries allows error messages to be formatted any way the user specifies through the The solution I am envisioning is keeping the |
|
@chemdrew But i don't see a class of name CustomError and if so is it returned as part of |
|
@smfaizalkhan this pull request isn't merged so it is not in any release; please see my comment above for a better way of achieving this |
|
@chemdrew If so ,the error class that we have if as below |
|
@chemdrew And to solve the problem of custom error responses (in the case that graphql-java is providing here) we make If so ,the error class that we have if as below |
Added path, errorType and extensions to Error class.