Skip to content

When using useGenericAuth Query Objects not passed Directives #1320

Answered by MDrooker
MDrooker asked this question in Q&A
Discussion options

You must be logged in to vote

Actually its a false alarm...caused by us upgrading to 4.0.

The change documented in the notes-

Now the authorization rules are applied statically before running any execution logic, 
which results in the WHOLE operation being rejected as soon 
as a field in the selection set does not have sufficient permissions.

was the cause.

I guess the real question-
Is there a way to get that functionality back?
We would still return the fields that didnt require any auth vs just returning an empty payload and no errors.
In the example below, title and body fields should still return data. They are being evaluated anyway

Link to sandbox-
https://codesandbox.io/s/envelop-test-reybbs

With this query-

h…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@n1ru4l
Comment options

@MDrooker
Comment options

@n1ru4l
Comment options

Answer selected by MDrooker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1319 on March 13, 2022 07:27.