Is it ok if I query only repository create? #142
JuTiger-Lee
started this conversation in
General
Replies: 1 comment 3 replies
-
I usually use repositories for retrieving domain entities (aggregates), and query handlers for retrieving raw data for users. I would not mix those two things to avoid confusion and clearly separate their responsibilities. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
CQRS pattern mean is Command and Query separation
Is it ok if I create query repository instead query handler?
for example query.user.repository file instead get.user.query.handler.ts file
Beta Was this translation helpful? Give feedback.
All reactions