Ash Union Calculations
I'm still wrapping my head around polymorphic relationships and was wondering why a calculation on one needs to return a
E.g.
I tried swapping out the return values above for the direct value, e.g.
%Ash.Union{}?E.g.
I tried swapping out the return values above for the direct value, e.g.
record.checking_account and that seemed to work, so what value is being added / what function is this playing here? I don't have multiple clauses in my condition yet as I'm still building things out (if that makes a difference). What was also surprising about this is that despite the calculation specifying a union type in the second argument (e.g. AccountImplementation), it was happy to return just the value. Thanks.Solution
We don't check that calculation return values match their declaration (for performance reasons)
