NestJS · Junior · Question 33 of 75

What does transform: true in ValidationPipe give you?

Explanation

Without it, the handler gets plain objects and strings, even if the parameter is typed as a class or number.

Further reading

Problem with a question

NestJS · Junior · question 33

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz