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

fix: cast using overwritten embedded discriminator key when set #15076

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #15051

Summary

If user updates the embedded discriminator key via array filter, use the overwritten discriminator key when casting the update.

Examples

@vkarpov15 vkarpov15 added this to the 8.8.4 milestone Dec 4, 2024
test/model.updateOne.test.js Outdated Show resolved Hide resolved
@vkarpov15 vkarpov15 merged commit cf50772 into master Dec 5, 2024
1 check passed
@hasezoey hasezoey deleted the vkarpov15/gh-15051 branch December 5, 2024 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants