import { Inject , Injectable , Scope } from '@nestjs/common' ; import { REQUEST } from '@nestjs/core' ; import type { Request } from 'express' ; /**
 * https://github.com/nestjs/nest/issues/173
 */ @ Injectable ( { scope : Scope . REQUEST } ) export class RequestContext { constructor ( @ Inject ( REQUEST ) public context ) { } }