ash_graphql/test/support/resources/movie_actor.ex
2024-05-26 09:50:54 -04:00

23 lines
461 B
Elixir

defmodule AshGraphql.Test.MovieActor do
@moduledoc false
use Ash.Resource,
domain: AshGraphql.Test.Domain,
data_layer: Ash.DataLayer.Ets
actions do
defaults([:create, :update, :destroy, :read])
end
relationships do
belongs_to :movie, AshGraphql.Test.Movie do
primary_key?(true)
allow_nil?(false)
end
belongs_to :actor, AshGraphql.Test.Actor do
primary_key?(true)
allow_nil?(false)
end
end
end