-
Bug- We are using the userGenericAuth plugin with this config-
I have a schema that looks like this-
I am trying to lock down the event query for only users with the role "ADMIN".
Per the documentation the validateFunction should be the place to determine if an object has a directive attached to validate the perms of the current userObject
But when each field is validated, the query type of
Has undefined returned for the fieldAuthDirectiveNode. We are using Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@MDrooker Can you please provide a minimal reproduction on StackBlitz or CodeSandbox or failing test in a PR? |
Beta Was this translation helpful? Give feedback.
-
Actually its a false alarm...caused by us upgrading to 4.0. The change documented in the notes-
was the cause. I guess the real question- Link to sandbox- With this query- |
Beta Was this translation helpful? Give feedback.
Actually its a false alarm...caused by us upgrading to 4.0.
The change documented in the notes-
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…