2024-02-10 03:36:23 +13:00
|
|
|
defmodule AshGraphql.Test.RootLevelErrorsSchema do
|
|
|
|
@moduledoc false
|
|
|
|
|
|
|
|
use Absinthe.Schema
|
|
|
|
|
2024-04-02 07:03:06 +13:00
|
|
|
@domains [AshGraphql.Test.RootLevelErrorsDomain]
|
2024-02-10 03:36:23 +13:00
|
|
|
|
2024-04-02 07:03:06 +13:00
|
|
|
use AshGraphql, domains: @domains
|
2024-02-10 03:36:23 +13:00
|
|
|
|
|
|
|
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
|