Here is my question:
I have a libs component that encapsulate every domain aspect of my application. On another component, a monolithic app (with query handlers inside) that updates views and expose API’s.
My domain doesn’t have logic to handle with a specific external API (Identity), but need to store some information regarding events from the external API.
Below I’ll add my Handler (inside query side) and the aggregate that it deals with (on domain side).
I have achieved my goal, but the fact that I’m sending a command from a QueryHandler makes me think that the design is wrong.