Livio Brunner

Results 111 comments of Livio Brunner

@kamilmysliwiec Yeah i saw that -- though even with `select(CatModule).get(AppService)` it will select the `AppService` of `AppModule` - not the one from `CatModule`. _Technically_ it's possible to get to the...

@micalevisk what Module is in your example being loaded via `await repl(…)`?

Sorry to interrupt you, but this discussion is not related to the issue. Please move it to another issue, thanks! :)

We use NestJS at [Roche Diagnostics International AG in Rotkreuz](https://www.roche.ch/en/standorte/rotkreuz.htm) (CH), for two internal applications. One of these applications is even open source: https://github.com/Roche/lxdhub Related: https://github.com/nestjs/docs.nestjs.com/pull/204 cc @lukasweber @erickeller

@bennyn great idea! At this point in time, you can check [awesome-nestjs#projects-using-nestjs](https://github.com/juliandavidmr/awesome-nestjs#projects-using-nestjs) or maybe you find some gems in the [dependents network](https://github.com/nestjs/nest/network/dependents) tab.

@kamilmysliwiec Maybe something like this? ```ts const appRoutes: Routes = [ { path: 'hero', method: RequestMethod.POST, use: (heroService: HeroService) => heroService.getAll(), inject: [HeroService], // This option would ignore the `use`...

@shekohex thanks a lot for your answer! > so do you think we actually need that in the core ? I guess it should atleast be at the same place...

> instead of use: (someService: SomeService) => someService.someMethod(),, we give them a reference to the underlying module container itself, or an express-like (req, res, next, container) => {...} function api....

@marcus-sa thanks for the feedback. > use doesn't seem descriptive for what it does. I've used `use` because Express uses `app.use` too [for middleware definitions](http://expressjs.com/de/api.html#app.use) >And that's still not a...

@marcus-sa I thought about that too, but it is not actually a factory, its a router handle. On top of that the way I proposed you can not inject anything...