ash_graphql/test/support/relay_ids/schema.ex
Riccardo Binetti 365b3aedc6
feat: Relay refetching support (#106)
* feat: add support for relay global IDs

* improvement: use the GraphQL type when projecting fields

This allows picking also up fields coming from fragments in queries returning an
interface

* feat: add relay node query

Allow retrieving a resource implementing the Node interface given its Relay
global id.
2024-01-24 14:59:12 -05:00

30 lines
528 B
Elixir

defmodule AshGraphql.Test.RelayIds.Schema do
@moduledoc false
use Absinthe.Schema
@apis [AshGraphql.Test.RelayIds.Api]
use AshGraphql, apis: @apis, relay_ids?: true
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