Closed daniel-mader closed 10 months ago
That's correct, @daniel-mader. Each aggregate should have it's own PostgresCqrs
framework.
That being said two frameworks may share one or more queries. E.g., if you had a BankAccount
and a Customer
aggregate, you might have several queries that need information from both of them.
The cqrs-demo shows how the aggregate
BankAccount
is used in the ApplicationState:The
CqrsFramework<A, ES>
can only hold one singleAggregate
, so I assume I need to add all my aggregates as additional fields to theApplicationState
?Is this the intended way of doing it?
Thanks in advance!