Using an inline aggregate of unrelated resource filtering by related resources
I believe I could do this using a custom relationship and falling back to Ecto, but I was wondering if there was a "Ash way" of doing what I'm trying to do here.
I have four resources/tables
I'm trying to write a calculation to go from
Using SQL I would normally write something like
Trying to do this as a calculation I've tried:
and
But neither seem to work. Does Ash have a suggestion on how to to model these complex relationships? Or are you meant to just fallback to CustomRelationship/Ecto in these situations?
I have four resources/tables
SceneWidget
Scene
WidgetVersion
WidgetMemory
I'm trying to write a calculation to go from
SceneWidget => WidgetMemoryUsing SQL I would normally write something like
Trying to do this as a calculation I've tried:
and
But neither seem to work. Does Ash have a suggestion on how to to model these complex relationships? Or are you meant to just fallback to CustomRelationship/Ecto in these situations?
