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(document): handle set() from top-level underneath a map of mixed #13386

Merged
merged 1 commit into from May 8, 2023

Conversation

vkarpov15
Copy link
Collaborator

Re: #13327

Summary

Part 2 of #13327 points out that doc.set('c.x.y', 1) doesn't work if c is a map of mixed. Turns out that 1) Mongoose doesn't pick up map of mixed, and 2) Mongoose doesn't handle creating objects correctly when doing a deep set underneath a map. This PR fixes both of those.

Examples

@vkarpov15 vkarpov15 added this to the 7.1.1 milestone May 8, 2023
@vkarpov15 vkarpov15 merged commit a2040f6 into master May 8, 2023
33 of 34 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13327-2 branch May 8, 2023 18:22
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.

None yet

2 participants