deivisonisidoro / clean-arch-typescript

33 stars 7 forks source link

map to dto #1

Open bensaadmohamed opened 7 months ago

bensaadmohamed commented 7 months ago

hello and thanks for this helpfull repository after i play a little with your code i see that you didnt use mapper to map from db to dto for example if i comment the email field in IUserOutRequestDTO to remove it from the response body it doesnt work and the email field is sill showing in response body i see tha you used select statment in prisma query as a mapper ,but what if using another database orm that dont support attribute selecting

deivisonisidoro commented 7 months ago

Hello yes, you are correct! I realize this in my other projects but I didn't update this project, thanks for letting me know. feel free to open a PR if you can