#Pass data to snake case, but leave camel case in DTO
3 messages · Page 1 of 1 (latest)
All you need to do for this is make sure that in your ValidationPipe options you specify "transform: true" then add a @Expose() decorator on the property for example on lastName and pass an options object saying {name: 'last_name'}
This basically tells it to map the property last_name of the plain object to the property lastName of the DTO instance
Thank you, it worked