Skip to content

Dependency Injection Inside a Pre save hook #432

@shahriar-shojib

Description

@shahriar-shojib

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions