on-internet
← Community

Best way to map DTOs and entities in a Clean Architecture node.js server

Stack Overflow ·

I am learning Clean Architecture using Typescript/node.js and struggling to find the best way to map DTOs (Data Transfer Objects) and Domain Entities. DTOs are used to transfer data between the presentation layer (web server) and the application layer (use cases). I found many resources online advising various design patterns to achieve this in various languages : Mappers (though it's not a design pattern) Factories Builders ... In his book "Clean Architecture", Robert C. Martin talks about "adapters" but I could not find any explicit example of implementation. What would be the best and most

Comments

Sign in or sign up to comment and upvote.

No comments yet.