ash_graphql/test/support/schema.ex
Riccardo Binetti 31d29e178f
improvement: deduplicate map types across domains (#164)
Allow having common NewType maps that are used in multiple domains and are
correctly deduplicated
2024-05-23 12:11:28 -04:00

30 lines
533 B
Elixir

defmodule AshGraphql.Test.Schema do
@moduledoc false
use Absinthe.Schema
@domains [AshGraphql.Test.Domain, AshGraphql.Test.OtherDomain]
use AshGraphql, domains: @domains
query do
end
mutation do
end
object :foo do
field(:foo, :string)
field(:bar, :string)
end
input_object :foo_input do
field(:foo, non_null(:string))
field(:bar, non_null(:string))
end
enum :status do
value(:open, description: "The post is open")
value(:closed, description: "The post is closed")
end
end