Question · NestJS course · Module 10: Data Validation
Validation Groups
What are validation groups used for in class-validator?
Answer options
- Grouping decorators into separate files
- Creating user groups with different permissions
- Organizing unit tests
- Applying different validation rules in different contexts (e.g., create vs update)
You can check the correct answer by solving this task in the CodeWorlds game.