mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-21 13:53:20 +12:00
31 lines
522 B
Elixir
31 lines
522 B
Elixir
|
defmodule AshGraphql.Test.RootLevelErrorsSchema do
|
||
|
@moduledoc false
|
||
|
|
||
|
use Absinthe.Schema
|
||
|
|
||
|
@apis [AshGraphql.Test.RootLevelErrorsApi]
|
||
|
|
||
|
use AshGraphql, apis: @apis
|
||
|
|
||
|
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
|