[Question] Additional decorators used with controller parameters
Hello,
Is it possible to set custom properties into additional decorated parameters in controller ? Example:
@Get() async findAll(@Principal() principal:Principal) { }
Where principal will be built with factory based on current request context ?
I tried to use pipes, but without result. Looks interceptors/middlewares are not proper to go with it.
@szkumorowski I've created PR https://github.com/nestjs/nest/pull/240, waiting for @kamilmysliwiec approve.
Kudos to @zMotivat0r
I need this feature,too. @kamilmysliwiec approve please.
Fantastic job @zMotivat0r. I'm gonna merge this pull request today 🙂
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.