We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As @meammeiam reported in issue 1856, if you try to push a new event it saves an empty item.
To reproduce this issue just add the code below to the code from the blog post about embedded discriminators:
Batch.create(batch).then(function(doc) { doc.events.push({ kind: 'Purchased', product: 24 }); doc.save().then(function(doc) { console.log(doc); }); });
Software versions:
The text was updated successfully, but these errors were encountered:
test(discriminators): repro first part of #5001
fa4ebe7
fix(discriminators): handle embedded discriminators in push()
fa4e64f
Re: #5001
test(discriminator): repro #5001 part 2
4a100d7
2e25466
@vkarpov15 Thanks, your fix works like a charm. Great work!
Sorry, something went wrong.
@vkarpov15 Yes, It works great now! Thank you very much for your hard work! Mongoose is awesome!
@davebaol Thanks for filing the bug!
No branches or pull requests
As @meammeiam reported in issue 1856, if you try to push a new event it saves an empty item.
To reproduce this issue just add the code below to the code from the blog post about embedded discriminators:
Software versions:
The text was updated successfully, but these errors were encountered: