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: avoid applying defaults on map embedded paths #15217

Merged
merged 2 commits into from
Feb 4, 2025

Conversation

vkarpov15
Copy link
Collaborator

Fix #15196

Summary

Because arrays implicitly have a default value of [], maps of arrays currently have incorrect change tracking when loaded from the db because map.$* is marked as state default

Examples

@vkarpov15 vkarpov15 added this to the 8.9.7 milestone Feb 4, 2025
@vkarpov15 vkarpov15 merged commit b2a384e into master Feb 4, 2025
71 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15196 branch February 4, 2025 15:49
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.

document.save corrupts complex Map fields of the document (with additionnal $* keys)
2 participants