NestJS interceptors are class-annotated with injectable decorators and implement the interface. They are called before sending the request to a controller, while the method is called after the request has been processed by the controller and a response is returned. In the interceptor, we can do any processes and modify the request.

11m read timeFrom blog.logrocket.com
Post cover image
Table of contents
What are NestJS interceptors?Exploring the intercept method, ExecutionContext , and CallHandlerOver 200k developers use LogRocket to create better digital experiencesBinding interceptors in NestJSNestJS interceptors use casesConclusion

Sort: