NestJS · Senior · Question 52 of 75

What's a pitfall of @Res() without passthrough in interceptors and filters?

Explanation

Streaming downloads are a valid reason to use @Res(); otherwise prefer returning values or StreamableFile.

Further reading

Problem with a question

NestJS · Senior · question 52

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