NestJS · Junior · Question 66 of 75

What does @Res() in a handler change?

Explanation

Use @Res({ passthrough: true }) if you only need to set a header or cookie but still want to return a value.

Further reading

Problem with a question

NestJS · Junior · question 66

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz