#Class transformer alternatives....
1 messages · Page 1 of 1 (latest)
I personally don't use class-validator or class-transformer, and instead make use of a schema validator like Zod or valibot. But I also don't use an ORM so I don't get class instances back from my database, just objects of the correct shape (or I map it in the service myself)
hmm
isnt that overwork when we have already build in libraries?
I find that it provides better control over what happens with the mapping, and I personally don't like to tie my DTO to my database models