CodeZettaInterview Hub

NestJS · Pipes · Mid-Level · Comparison

Transform pipes vs validate-only — examples?

Short Interview Answer

ParseUUIDPipe transforms/validates path ids; custom pipes can normalize phone numbers then validate.

Detailed Explanation

Keep pipes focused. Heavy business validation may belong in domain services.

Did you know this answer?