Replies: 1 comment
-
|
Hey @alaarihan, sorry for the delay. Indeed, it doesn't work. If we write this. #[seaography(entity = "crate::entities::store", object_config = "guard = \"RoleGuard::new(Role::Admin)\"")]
pub struct QueryRoot;The expanded code will be. #[graphql("guard = RoleGuard::new(Role::Admin)")]This PR should fix it |
Beta Was this translation helpful? Give feedback.
0 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.
-
How can I use graphql guard inside a query field?
This is not ok
#[seaography(entity = "crate::entities::post" object_config = "guard = RoleGuard::new(Role::Admin)")]
Beta Was this translation helpful? Give feedback.
All reactions