-
Hi - I have a directive that checks the user's permissions for a query. Like this - extende type User {
isValid: Boolean @hasPrivilege(adminPriv: [SUPER_ADMIN])
} The hasPrivilege directive has been defined and uses context to resolve the data if the user has the specific privilege. If the user does not, we throw a ForbiddenError. In my test for the
I'm seeing the correct data from the log. But the query response from the client continues to return null. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
oops - nvm, ended up figuring out that there was an issue w/ the directive itself |
Beta Was this translation helpful? Give feedback.
oops - nvm, ended up figuring out that there was an issue w/ the directive itself