You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"errors": [
{
"message": "No `allow` rule exists that allows `READ` operations on `Product`for role `Business`"
},
{
"message": "No `allow` rule exists that allows `READ` operations on `Product`for role `Business`"
},
{
"message": "No `allow` rule exists that allows `READ` operations on `Localized`for role `Business`"
},
{
"message": "No `allow` rule exists that allows `LIST` operations on `Price`for role `Business`"
},
{
"message": "No `allow` rule exists that allows `LIST` operations on `Question`for role `Business`"
},
{
"message": "No `allow` rule exists that allows `READ` operations on `Product`for role `Business`"
},
{
"message": "No `allow` rule exists that allows `READ` operations on `Localized`for role `Business`"
},
{
"message": "No `allow` rule exists that allows `LIST` operations on `DiscountCode`for role `Business`"
}
]
}
Which are all caused by the first error (no allow READ Product on Business), because when I add it all errors disappear.
Expected
Only the parent error should be returned.
The text was updated successfully, but these errors were encountered:
Redundant authorization error messages
Pragmafile: https://gist.github.com/anasbarg/f5617d17e45e35488689408322e14a16
Problem
When I try to run the following query on the above schema:
I get the following response:
Which are all caused by the first error (no
allow READ Product
onBusiness
), because when I add it all errors disappear.Expected
Only the parent error should be returned.
The text was updated successfully, but these errors were encountered: