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

Inheritance #3

Open
alme7airbi93 opened this issue Sep 4, 2019 · 1 comment
Open

Inheritance #3

alme7airbi93 opened this issue Sep 4, 2019 · 1 comment

Comments

@alme7airbi93
Copy link

Hi there,

Many thanks for the effort have been done in here, I would like to ask does mongoose-typescript supports inheritance ? discriminators as it is in mongoose doc link
https://mongoosejs.com/docs/discriminators.html

Best Regards,,,

@bangbang93
Copy link
Owner

Well, that has not been supported yet. But you can use getModel() and getSchema() manually use the The model.discriminator() function after defining the schema class.

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