-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema documentation and Client-side logic #112
Comments
Hey, I thought I already replied to this, sorry for the delay. I love your idea! Unfortunately, we entirely rely on |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi, I'm curious if there's a simple way to determine if the user has permission for mutations from the client? Or would it require an introspection query? |
@Victordmdb I am not sure I understand your question. From what I know, neither of the two would give you that information. One way I can imagine obtaining such information would be by forwarding a role in user's session information. That, however, would have to be determined by the business logic of your application, not the schema. |
@Victordmdb Will you suggest to use CASL based on your testing? |
This looks really awesome, especially with the new features coming in 3.0!
I'm currently using schema directives to enforce permissions based on Apollo's docs. I've added two features that really benefit my app:
So, I have a couple questions. I'm also happy to contribute to any of these features if they seem possible and interesting.
isAuthenticated
andisAdmin
etc. could be derived.The text was updated successfully, but these errors were encountered: