ash_graphql/test/support/resources/movie_actor.ex

24 lines
461 B
Elixir
Raw Normal View History

2024-05-27 01:50:54 +12:00
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