My Aggregate has below attributes
String : id,
List : ClassBIdList
ClassB is an aggregate from another service
Now lets say, I receive a rest request to update all records of my AggregateClassA where ClassBIdList contains “OldId” and replace “OldId” with “NewId” for all those aggregates.
Is there a good way to identify and load all aggregates where “OldId” exists in ClassBIdList. I am currently calling my state database to identify all these records.
Does Axon provide API to query domain event repository based on attributes other than id in the payload?