ash_graphql/test/support/resources/nested_embed.ex
2024-04-11 23:49:22 -04:00

16 lines
325 B
Elixir

defmodule AshGraphql.Test.NestedEmbed do
@moduledoc false
use Ash.Resource,
data_layer: :embedded,
extensions: [AshGraphql.Resource]
graphql do
type :nested_embed
end
attributes do
attribute(:name, :string, public?: true)
attribute(:enum, AshGraphql.Test.NestedEnum, public?: true)
end
end