Replies: 1 comment 11 replies
-
If my Roles and permissions are static, I can create 2 separate query and use according to my roles query AdminPost {
Post {
id
title
detail
someData
}
} query UserPost {
Post {
id
title
detail
}
} But, My permissions are set dynamically for users |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lets say
I have Post table
I have multiple dynamic roles ( with permissions ).
someData
fieldsomeData
fieldMy requirement is
Ideally i would send this query and depending on permission someData will return null
If i set Permission on User, It hides
someData
field on query. Which results throwingsomeData1 does not exist on post query
errorHow do set permission and not Hide
someData
field?Beta Was this translation helpful? Give feedback.
All reactions