Warning: experimental code! Not all features might work.
This library allows you to write GraphQL queries using Elixir constructs. This has 2 upsides:
- Queries are checked on compile-time, against an existing Absinthe schema;
- Tool support is better: identation of the queries works because it uses normal Elixi syntax.
If available in Hex, the package can be installed
by adding absinthe_dsl
to your list of dependencies in mix.exs
:
def deps do
[{:absinthe_dsl, "~> 0.1.0"}]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/absinthe_dsl.