NestJS - Interceptors
What will be the output of this interceptor code snippet when the controller returns { data: 5 }?
intercept(context, next) {
return next.handle().pipe(map(data => ({ ...data, extra: 10 })));
}