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

Support inherited documents [question] #26

Open
vargur88 opened this issue Mar 2, 2020 · 0 comments
Open

Support inherited documents [question] #26

vargur88 opened this issue Mar 2, 2020 · 0 comments

Comments

@vargur88
Copy link

vargur88 commented Mar 2, 2020

Hi and thanks for the great work!

I'm taking a look to the library to decide if I'm able to use it in existing project. For now it's quite tricky for me to understand how to create separate migrations for inherited documents. For example, I have migration for class AAA, it's works ok, and now I whant to create migration for class BBB (inherited from AAA). The tricky part is that migration for BBB also trying to migrate documents with type AAA (also for CCC, DDD and so on), not only for BBB

For now I'm solving this behavior by cheking and comparing the "_id" value, but would be greate to make it more simple and dynamic. It it possible at all now?
P.S. There is no way to drop (or replace by aggregation) the documents inheritance at my project

Thank you

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

No branches or pull requests

2 participants