NestJS · Junior · Question 66 of 75
What does @Res() in a handler change?
- 1Nothing, it's only for logging
- ✓Correct answer: You get the raw platform response object and must send the response yourself; Nest's standard response handling is off
- 3It enables response caching
Explanation
Use @Res({ passthrough: true }) if you only need to set a header or cookie but still want to return a value.