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(query): shallow clone $or and $and array elements to avoid mutating query filter arguments #14614

Merged
merged 2 commits into from
May 30, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14610

Summary

Follow up on #14580, #14567: also shallow clone $and and $or conditions to make casting avoid mutating $or/$and elements in place. We already use utils.merge() to avoid mutating for top-level keys in query filter.

Examples

@vkarpov15 vkarpov15 added this to the 7.6.13 milestone May 24, 2024
@vkarpov15 vkarpov15 merged commit 520e4be into 7.x May 30, 2024
58 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14610 branch May 30, 2024 12:37
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