Put in order · NestJS course · Module 10: Data Validation
Validation Decorator Order
Arrange the validation decorators for the 'name' field from the most general to the most specific:
Items to put in order
- @MinLength(2)
- @IsString()
- @IsNotEmpty()
- @MaxLength(50)
You can check the correct answer by solving this task in the CodeWorlds game.