-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pass along missing field errors to the user #8262
Conversation
@@ -36,6 +38,7 @@ const generateErrorMessage = (err: ApolloError) => { | |||
export class ApolloError extends Error { | |||
public message: string; | |||
public graphQLErrors: ReadonlyArray<GraphQLError>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I consider Readonly to be a “bad part” of TypeScript but I’m not gonna rock the boat here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me @brainkim! (maybe just add a quick note in the CHANGELOG
as well) Thanks!
9e94817
to
e2d336f
Compare
e2d336f
to
8fa3797
Compare
8fa3797
to
2de299a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I want to push one commit before you merge (see comment below).
“Fixes“ #8063 by exposing missing field errors.