# maps/pin.ex
actions do
create :add_to_map do
argument :map, :struct,
allow_nil?: false,
constraints: [instance_of: Maps.Map]
end
end
relationships do
belongs_to :map, Maps.Map
end
# maps/pin.ex
actions do
create :add_to_map do
argument :map, :struct,
allow_nil?: false,
constraints: [instance_of: Maps.Map]
end
end
relationships do
belongs_to :map, Maps.Map
end