Ash FrameworkAF
Ash Framework3y ago
13 replies
gvanders

Polymorphic Embedded Resources?

Is it possible to have embedded resources be one or more structs

for example

defmodule MainResource do
  use AshResource, data_layer: :embedded

  attributes do
    attribute :some_resource, ResourceB || ResourceA
  end


Thinking either this is not supported or could be done with some sort of custom type?
Was this page helpful?