I would like to change the state of a property in my aggregate lets say called IsActive, I would like to set it to false if only if IsActive is currently true. How would do such sort of command validation? Do you query the Event Store for the current state of the aggregate or query the read store from the aggregate class?
Also, I am going through some of the questions here and people are only changing the state in the read store without applying the event? why would you do that? Shouldn’t both the states in read and event store match up at the end?