-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Hi there!
I am trying to implement a GraphQL server with Objection.js to handle database queries, and of course this library to build the GraphQL schema. And for security measures, some access control needs to be implemented, as it is undesirable to have let's say a user querying another user's data in Users table. Assuming there are common (normal user privilege) and admin user roles in the table, the access controls should be implemented is as follows:
- Unauthenticated users cannot query from the table
- Authenticated (common) users can only query their own info
- Authenticated (admin) users can query all user info
How can we achieve such access control with this library?
Thanks in advance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels