Get all state without AggregateId filter #120
Replies: 1 comment 3 replies
-
An aggregate is a transaction boundary, and your requirement crosses your current boundaries. This is one of the most typically asked questions regarding event sourcing (and distributed systems), not specific to Eventous, and you can find many answers online. |
Beta Was this translation helpful? Give feedback.
-
OrderAggregate --> OrderState, OrderId
We got a requirement where we need restrict only 3 order to be created per day by the specific user..
To do this we need to get all the orderstate without filtering by orderId in order aggregate
and check for the condition and then only allow the event to be applied..
But currently i can only get OrderState of particular orderId in OrderAggregate...Is there way to get all order state without OrderId filter ?
Beta Was this translation helpful? Give feedback.
All reactions