Ash FrameworkAF
Ash Framework3y ago
26 replies
kernel

Another calculations query

I have 'Job' which is related to a 'Service' via another resource (not defined as a :through).

I need a calculation that does something like
expr(status == ^JobStatus.completed() and order_service.service.track_weights == true and is_nil(weights)


I've already defined the first aggregates, but now I'm getting an error telling me that I need to provide field type for first, so I'm assuming that something along my chain of first aggregates is not working?

or am I not allowed to define an aggregate of an aggregate?
Was this page helpful?