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(projection): avoid setting projection to unknown exclusive/inclusive if elemMatch on a Date, ObjectId, etc. #14894

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14893

Summary

2b197b2#diff-af7545780ae0b49c587fcbe08b131ce99659ccac5786983702610b6c7a3b8a24 made it so that isExclusive() would return null if the projection had a $elemMatch where the first property was an ObjectId, Date, Buffer, or other value object.

Examples

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vkarpov15 vkarpov15 added this to the 7.8.2 milestone Sep 25, 2024
@vkarpov15 vkarpov15 merged commit 5ebe00a into 7.x Sep 25, 2024
58 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14893 branch September 25, 2024 14:44
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