Writing Absinthe authorization middleware
Plug is not the only interface with the middleware layer. Absinthe also comes with a middleware layer of its own and we can use it similarly to implement authorization for queries, mutations, and subscriptions. Here’s an example.
Read next Using Supervisors to Organize Your Elixir Application