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

Inject model into schema for post hook #159

Open
manzonif opened this issue Apr 29, 2020 · 7 comments
Open

Inject model into schema for post hook #159

manzonif opened this issue Apr 29, 2020 · 7 comments

Comments

@manzonif
Copy link

There is a way to do this?

nestjs/mongoose#7 (comment)

@kpfromer
Copy link
Owner

I will take a look at this in a week, I am quite busy with finals at the moment!

@manzonif
Copy link
Author

Ok thanks!

@jtbairdsr
Copy link

any update on this? this would be a great feature for triggering changelog creation in hooks instead of having to write a service wrapper and enforce its usage...

@salim97
Copy link

salim97 commented Mar 30, 2021

+1

@AmineHouari98
Copy link

still nothing ?

@pozniakas
Copy link

pozniakas commented Apr 8, 2021

I know that the code of the decorators could be improved, but this solution could be the start to have decorators prepared for Mongoose hooks:
nestjs/mongoose#7 (comment)

@tnte
Copy link

tnte commented May 22, 2021

Take a look at nestjs/mongoose#7 (comment) - This is how I solved the issue.

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

7 participants