ash_graphql/test/support/relay_ids/schema.ex
2024-08-16 14:36:49 -04:00

30 lines
585 B
Elixir

defmodule AshGraphql.Test.RelayIds.Schema do
@moduledoc false
use Absinthe.Schema
@domains [AshGraphql.Test.RelayIds.Domain]
use AshGraphql, domains: @domains, relay_ids?: true, generate_sdl_file: "priv/relay_ids.graphql"
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