NestJS · Junior · Question 41 of 75

What can an interceptor do?

Explanation

Interceptors wrap the handler call. next.handle() returns an RxJS Observable of the result that you can transform with operators like map.

Further reading

Problem with a question

NestJS · Junior · question 41

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