Question · NestJS course · Module 10: Data Validation
ClassSerializerInterceptor
What is needed for @Exclude and @Expose decorators to work in a controller?
Answer options
- Installing an additional class-serializer library
- Adding @UseInterceptors(ClassSerializerInterceptor) to the controller
- Configuring middleware in app.module.ts
- Using a special @Serialize() decorator above the method
You can check the correct answer by solving this task in the CodeWorlds game.