Writing your own Absinthe DSL with macros and middleware
Absinthe is a great library to do graphql in Elixir. However, when writing your resolvers you may find that you are writing some boilerplate multiple times. So, in the spirit of keeping your code DRY, in this post I’ll show how we can leverage middleware and a macro to write your own DSL for your Graphql api. I assume some basic knowledge on how Absinthe works, most of the information can be found on in the guides »