- Simple GraphQL Mix Boilerplate
If available in Hex, the package can be installed
by adding exquery
to your list of dependencies in mix.exs
:
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :graphql]
]
end
# Dependencies for installation of the package(s)
def deps do
[
{:exquery, "~> 0.1.0"}
]
end
iex -S mix
iex> GraphQL.execute(TestSchema.schema, "{greeting}")
Output: {:ok, %{greeting: "Hello, world!"}}
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/exquery.