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
When I use user validation for GQL calls with "isGranted()" config, for query type queries (not mutations) I'm getting a warning instead of an error in the response. I'd need to force this warnings turns into errors, but I can't find the way.
access: '@=isGranted( "whatever", [args["id"]] )'
Does anyone have any idea on how to approach this issue?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When I use user validation for GQL calls with "isGranted()" config, for query type queries (not mutations) I'm getting a warning instead of an error in the response. I'd need to force this warnings turns into errors, but I can't find the way.
access: '@=isGranted( "whatever", [args["id"]] )'Does anyone have any idea on how to approach this issue?
This is the vendor portion of code involved.
UserWarning::class
vendor/overblog/graphql-bundle/src/Resolver/AccessResolver.php:60
And this is the response, where I'd need a "error" group, instead of warning.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions