NestJS - Interceptors
Given this interceptor code, what will be logged?
class LogInterceptor implements NestInterceptor {
intercept(context, next) {
console.log('Before handler');
return next.handle().pipe(tap(() => console.log('After handler')));
}
}