Skip to content
New issue

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

Dependency Injection Inside a Pre save hook #432

Open
shahriar-shojib opened this issue Jul 11, 2021 · 1 comment
Open

Dependency Injection Inside a Pre save hook #432

shahriar-shojib opened this issue Jul 11, 2021 · 1 comment

Comments

@shahriar-shojib
Copy link

Hello,
I would like to perform dependency injection on a pre-save hook function, I haven't found any guides on the docs to do such a thing.
Ideally, I would like to be able to do something similar like this: https://docs.nestjs.com/techniques/mongodb#hooks-middleware .
Please let me know if it's possible with nestjs-typegoose .
Thanks

@87789771
Copy link

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants