NestJS · Senior · Question 42 of 75

How do you prevent mass assignment when updating entities in Nest?

Explanation

TypeScript types don't exist at runtime; only validation and explicit mapping stop extra fields.

Further reading

Problem with a question

NestJS · Senior · question 42

Test yourself

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

Take this quiz