NestJS · Junior · Question 20 of 75

What is a DTO in Nest?

Explanation

Classes are used rather than interfaces because they exist at runtime, so pipes can validate and transform them.

Further reading

Problem with a question

NestJS · Junior · question 20

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