Question · NestJS course · Module 10: Data Validation

PartialType in NestJS

What does the PartialType() helper from @nestjs/mapped-types do?

Answer options

  • Creates a copy of the DTO with all fields optional
  • Splits the DTO into smaller parts
  • Removes half of the fields from the DTO
  • Merges two DTOs into one

You can check the correct answer by solving this task in the CodeWorlds game.