NestJS · Middle · Question 74 of 75
Interceptors are bound globally, on a controller and on a route. In what order does their 'after' logic run?
- 1In random order
- 2Global first, then controller, then route
- ✓Correct answer: In reverse: route-level first, then controller, then global, because each wraps the inner ones
Explanation
Before the handler they run global → controller → route; the response flows back out through the same layers in reverse.