Question · NestJS course · Module 10: Data Validation
The each Parameter in Decorators
What does the { each: true } parameter mean in the @IsString({ each: true }) decorator?
Answer options
- Repeats validation 3 times for certainty
- Disables validation for the array
- Checks the type of each array element individually
- Converts each element to a string
You can check the correct answer by solving this task in the CodeWorlds game.