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(array): avoid converting to $set when calling pull() on an element in the middle of the array #14531

Merged
merged 3 commits into from Apr 27, 2024

Conversation

vkarpov15
Copy link
Collaborator

Re: #14502

Summary

Part of #14502 is that pull() uses the Mongoose array, rather than the internal raw array, for making updates, which mixes up change tracking.

Examples

@vkarpov15 vkarpov15 added this to the 7.6.12 milestone Apr 22, 2024
test/document.test.js Outdated Show resolved Hide resolved
Co-authored-by: hasezoey <hasezoey@gmail.com>
@vkarpov15 vkarpov15 merged commit c9293a2 into 7.x Apr 27, 2024
42 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14502 branch April 28, 2024 08:51
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