2020-05-02 04:32:56 +12:00
|
|
|
defmodule AshGraphql.MixProject do
|
|
|
|
use Mix.Project
|
|
|
|
|
|
|
|
def project do
|
|
|
|
[
|
|
|
|
app: :ash_graphql,
|
|
|
|
version: "0.1.0",
|
|
|
|
elixir: "~> 1.10",
|
|
|
|
start_permanent: Mix.env() == :prod,
|
|
|
|
deps: deps()
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help compile.app" to learn about applications.
|
|
|
|
def application do
|
|
|
|
[
|
|
|
|
extra_applications: [:logger]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
|
|
|
|
# Run "mix help deps" to learn about dependencies.
|
|
|
|
defp deps do
|
|
|
|
[
|
2020-08-14 09:39:59 +12:00
|
|
|
{:absinthe, "~> 1.5.2"},
|
|
|
|
{:jason, "~> 1.2"},
|
2020-05-02 10:35:12 +12:00
|
|
|
{:ash, path: "../ash"}
|
2020-05-02 04:32:56 +12:00
|
|
|
]
|
|
|
|
end
|
|
|
|
end
|
2020-08-14 09:39:59 +12:00
|
|
|
|
|
|
|
# defmodule Foo do
|
|
|
|
# use Absinthe.Schema.Notation
|
|
|
|
|
|
|
|
# object :foo do
|
|
|
|
# field :item, :string do
|
|
|
|
# resolve fn _, _, _ ->
|
|
|
|
# "hello"
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
# end
|
|
|
|
# end
|