maticzav/graphql-shield

Consolidate per field multiple errors to a single one?

AviBueno opened this issue · 1 comments

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.

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! 😄