Question · NestJS course · Module 10: Data Validation
@ValidateNested Decorator
What does the @ValidateNested() decorator in class-validator do?
Answer options
- Runs decorator validation on the nested object
- Creates the nested object automatically
- Copies decorators from the parent class
- Merges two DTOs into one
You can check the correct answer by solving this task in the CodeWorlds game.