Hi, folks!
Let’s say I have an exercise aggregate, which has its state: [:uuid, :name]
.
So that I get the list of aggregates, for example:
[
%Exercise{uuid: ..., name: ...},
%Exercise{uuid: ..., name: ...}
]
I thought creating a root aggregate of exercises, which has the state: [:uuid, exercises: []]
.
So I will have something like:
%Exercises{
uuid: ...,
exercises: [
%Exercise{uuid: ..., name: ...},
%Exercise{uuid: ..., name: ...}
]
}
What other ways could I be using to list aggregates?