I used CQRS pattern with DDD,
I have some queries written using Dapper.
before fetching data I need to checking some rules.
my main question: this rules must be handle with Domain Model? (that Domain Model fetched from the Repository)?
for example:
I want to fetch all payments transactions of an specific "financial group", before fetching data, must be check that current user be one of members the "financial group".
now this checking must be handle with my domain model ("financial group")?
then in my query handler(CQRS pattern) I must be inject my Repository for get domain model?
I thought must be load domain model just for the Commands? and for the Queries must not load domain model.