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(model+query): support overwriteDiscriminatorKey for bulkWrite updateOne and updateMany, allow inferring discriminator key from update #15046

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vkarpov15
Copy link
Collaborator

Fix #15040

Summary

#15040 points out there's no way to set overwriteDiscriminatorKey for bulkWrite(). Also had a good suggestion for inferring the discriminator key from the update if overwriteDiscriminatorKey is set, I added that.

Examples

…ateOne and updateMany, allow inferring discriminator key from update

Fix #15040
@vkarpov15 vkarpov15 added this to the 8.8.3 milestone Nov 19, 2024
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

Successfully merging this pull request may close these issues.

Model.bulkWrite updateOne fails to update discriminator key with overwriteDiscriminatorKey set to true
3 participants