We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
currently its kinda impossible to resolve nestjs stuff inside i.e handler of actions. would be nice if this would be implemented.
my current workaround for this is to bind a moduleref on the current req obj inside the admin loader:
export class AdminLoader extends AbstractLoader { public constructor(private readonly moduleRef: ModuleRef) { super() } register( admin: AdminJS, httpAdapter: AbstractHttpAdapter<any, any, any>, options: AdminModuleOptions ) { .... lot other stuff app.use(options.adminJsOptions.rootPath, function admin(req, res, next) { req["resolver"] = moduleRef return router(req, res, next) }) } }
so on every request i can simply do:
const roleService = request.resolver.get(RoleService, { strict: false, })
If there is already a way implemented, would be nice to point this out in the documentation.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
currently its kinda impossible to resolve nestjs stuff inside i.e handler of actions. would be nice if this would be implemented.
my current workaround for this is to bind a moduleref on the current req obj inside the admin loader:
so on every request i can simply do:
If there is already a way implemented, would be nice to point this out in the documentation.
The text was updated successfully, but these errors were encountered: