NestJS · Middle · Question 24 of 75

Why might you write a custom pipe instead of using ValidationPipe?

Explanation

A pipe implements transform(value, metadata). Zod-based pipes are popular when schemas are shared with the front end.

Further reading

Problem with a question

NestJS · Middle · question 24

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