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

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.

2 participants