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

Consolidate per field multiple errors to a single one? #1407

Open
1 task done
AviBueno opened this issue May 4, 2022 · 1 comment
Open
1 task done

Consolidate per field multiple errors to a single one? #1407

AviBueno opened this issue May 4, 2022 · 1 comment

Comments

@AviBueno
Copy link

AviBueno commented May 4, 2022

Question about GraphQL Shield

When using an object based rule, e.g:

shield({
  User: isAuthenticate
})

When the rule fails to comply, an error will be raised for each requested field, e.g. three errors in the following case, all with the same text message:

query {
  User(...) {
    x
    y
    z
  }
}

Is there a way to consolidate all three errors into just a single one?

  • I have checked other questions and found none that matches mine.
@open-collective-bot
Copy link

Hey @AviBueno 👋,

Thank you for opening an issue. We will get back to you as soon as we can. Have you seen our Open Collective page? Please consider contributing financially to our project. This will help us involve more contributors and get to issues like yours faster.

https://opencollective.com/graphql-shield

We offer priority support for all financial contributors. Don't forget to add priority label once you become one! 😄

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

No branches or pull requests

1 participant