You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For complex projects it can get unmanageable to rely on having a separate Registry and recreate every DjangoObjectType node for every granular level of permissioning needed. I'm proposing a way to define field level permissions.
I have some hacky proof of concept code that works by injecting permission checking at the resolver level. Let me know if there's interest in making this solution more comprehensive and contributing to make this part of a future release @syrusakbary
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.
For complex projects it can get unmanageable to rely on having a separate Registry and recreate every DjangoObjectType node for every granular level of permissioning needed. I'm proposing a way to define field level permissions.
I have some hacky proof of concept code that works by injecting permission checking at the resolver level. Let me know if there's interest in making this solution more comprehensive and contributing to make this part of a future release @syrusakbary
Inspiration from:
https://www.prisma.io/blog/graphql-directive-permissions-authorization-made-easy-54c076b5368e/
https://blog.apollographql.com/authorization-in-graphql-452b1c402a9
In my schema.py
In typemap.py
The text was updated successfully, but these errors were encountered: