Geez, you got me a doubt. If
in CQRS my Query Stack talks directly to the Data Layer and I use a
Repository Pattern, in the rule, we must bring from the database only
the data that I will actually show in the UI. So, could I make the query methods from my Repository return ViewModels? What if I could create these ViewModels in my Repository layer? Since
if I create these ViewModels in my Application Layer and my Application
Layer refers to the Data Layer, it will not be possible for me to
return those ViewModels because they will be created in my Application
Layer, which is what generally developers do.