|
|
|
|
|
by nijynot
3149 days ago
|
|
The solution for authorization/access control is to use "Dataloader" [1] which is also made by Facebook.
You write a single source of truth for how authorization is handled, and make sure that graphql resolves with this source. Dataloader is not as well known as GraphQL, but crucial for complex authorization systems imo. It also has a bunch of other features like batching and caching which makes your life easier when opting for this solution. [1]: https://github.com/facebook/dataloader |
|