CodeZettaInterview Hub

NestJS · DTOs · Mid-Level · Best Practice

PartialType, PickType, OmitType, IntersectionType — when?

Short Interview Answer

Mapped types to derive update/create DTOs without duplication while staying explicit.

Detailed Explanation

Update often uses PartialType(CreateDto). Don't invent one mega DTO for all operations.

Did you know this answer?