NestJS · Middle · Question 22 of 75

What is a risk of using database entities directly as request DTOs?

Explanation

Separate input DTOs list only the allowed fields. Response DTOs control what leaves the API.

Further reading

Problem with a question

NestJS · Middle · question 22

Test yourself

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

Take this quiz