-
Notifications
You must be signed in to change notification settings - Fork 550
Description
Hi,
Thank you for the great project example and book. It really helps with understanding DDD and Clean Architecture principles.
I have a question about what should and should not be a part of Repository.
For example, in trainings/domain/training repository there are only 3 methods declared. The repository injected to commands - for example, approve training reschedule handler.
However, queries define their own read model. For example, all trainings query. Queries do not depend on domain repository.
Meanwhile, the repository implementation implements both - domain repository and read models defined in queries.
I'm a bit confused why AllTrainings and FindTrainingsForUser are not part of domain repository? Is it related to command and query models separation?
Thanks