Skip to content
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

Merged
merged 3 commits into from
May 20, 2021
Merged

Conversation

brainkim
Copy link
Contributor

“Fixes“ #8063 by exposing missing field errors.

@brainkim brainkim requested review from benjamn and hwillson May 19, 2021 01:18
@@ -36,6 +38,7 @@ const generateErrorMessage = (err: ApolloError) => {
export class ApolloError extends Error {
public message: string;
public graphQLErrors: ReadonlyArray<GraphQLError>;
Copy link
Contributor Author

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.

Copy link
Member

@hwillson hwillson left a 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!

@brainkim brainkim force-pushed the brian-pass-missing branch from e2d336f to 8fa3797 Compare May 20, 2021 17:33
@brainkim brainkim requested a review from StephenBarlow as a code owner May 20, 2021 17:33
@brainkim brainkim changed the base branch from main to release-3.4 May 20, 2021 17:33
@brainkim brainkim force-pushed the brian-pass-missing branch from 8fa3797 to 2de299a Compare May 20, 2021 17:35
Copy link
Member

@benjamn benjamn left a 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).

src/cache/core/types/common.ts Outdated Show resolved Hide resolved
@benjamn
Copy link
Member

benjamn commented May 20, 2021

@brainkim Feel free to merge (assuming you're ok with 9ec7f17)!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants