-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
Hi @Sairyss!
Thanks for this awesome repo! It's been super helpful. I did encounter an issue recently though -
According to the readme - queries should be part of the application layer. But when looking at find-users.query-handler.ts, we can see it's importing dependencies from an outer layer - the infrastructure layer (like slonik and user.repository).
Doesn't that break the dependency rule? Or am I missing something?
If queries are at the same layer as application services, shouldn't they be required to use ports to communicate to "the outside world" just like application services are required to?
Thanks!
Simon
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels