Hi,
I’m new to Axon and I’m having problems figuring out how to validate an aggregate field based on another aggregate.
I’ll explain: in my app, the user aggregate has, among other fields, the name of his/her country, so that the user can/cannot do operations on the basis of it. I’ve also the country aggregate, as I want to be able to add and remove a country to my liking (as admin of the system). My problem is: when I add a new user, how can I check if the country field is valid (ie that there is a country aggregate with that name)?
Thank you in advance and sorry if the question may sound silly