Skip to content

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
@vkarpov15 vkarpov15 merged commit b76ca9d into master Nov 25, 2024
74 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15040 branch November 26, 2024 13:59
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

4 participants