Dmitriy Krantsberg
Dmitriy Krantsberg
In `MyApp.registry` `FacilityRepository` is bound in `TRANSIENT` scope. Just like all other repositories and controllers.  The question is why when resolving `MyBindings.CURRENT_USER` binding Loopback is looking in the application...
@raymondfeng, I've created a stripped-down version of our project which reproduces this error: https://github.com/dkrantsberg/lb-my-api To reproduce: ``` npm i npm start do GET http://127.0.0.1:8000/api/facilities/facility1/lists ``` If you put a conditional...
@raymondfeng This makes sense. I realized I wasn't doing this dynamic datasource correctly even though it was working earlier, since there was only single instance of FacilityInstanceDatasource created upon the...
I came across the need to dynamically define controllers at runtime. I was able to create and add a controller using this (somewhat hacky) approach: ```ts const defineNewController = new...
Actually I was able inject Request and Response object into a dynamically created controller by also using `MetadataInspector.defineMetadata` and programmatically adding injection metadata to the controller class. Like this: ```ts...
Yes, this is what I ended up doing. Thanks, @achrinza.
@dhmlau No, wrapping the call to the ping() function in an async function doesn't make any difference. The behavior is still the same: - After mongo container stopped the first...