Map userWarning to userError #1007
ivanaareon
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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