I want to exclude some fields in my response and I use ClassSerializerInterceptor but it does not work when I use @Res.
Here my entity with @Exclude
Here my controller with @Get
And here my main where I use ClassSerializer global
The photo below is the error that I have in VScode when I call my Api e the responde in Postman is not correct
I have tried also @UseInterceptors(ClassSerializerInterceptor) above the @Get call but I have the same issue and the field password is still present