DEV Community

Discussion on: Clean Architecture, 2 years later

Collapse
 
yvespareteum profile image
yvespareteum

DTOs don't go into the repositories. It is on the outside layers it resides, precisely in the "Adapters" layer ; that layer is an enabler to the "Ports" layer, where you have the interactions with the outside world (eg. an API).
The ORM has to be abstracted within the repository.