ash_graphql/test/support/resources/no_graphql.ex

17 lines
286 B
Elixir
Raw Normal View History

defmodule AshGraphql.Test.NoGraphql do
@moduledoc false
use Ash.Resource,
data_layer: Ash.DataLayer.Ets
attributes do
uuid_primary_key(:id)
attribute(:name, :string)
end
relationships do
belongs_to(:post, AshGraphql.Test.Post, allow_nil?: false)
end
end