Override json error output format #3667
Unanswered
daviwall
asked this question in
Q&A / Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am looking for directions here, I am not sure this is the correct place for this question. Please let me know the correct place for this question if this is not it.
As you may know, Apollo 4 is discontinuing their error class "ApolloError" in favor of using directly GraphQLError.
After doing this change I noticed that the json error output is a bit different...
ApollorError woud generate the json output like this
Error: { Errors: {} }
Now GraphQL error outputs the json like this
{ Errors: {} }
I am looking for a way to have GraphQLError to output the same as ApolloError class used to do.
is there a class method I could override for that?
Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions