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): allow deselecting discriminator key #13722

Merged
merged 1 commit into from Aug 11, 2023
Merged

Conversation

vkarpov15
Copy link
Collaborator

Fix #13679

Summary

The flipped sign is because "excude === true" means a projection that explicitly excludes fields, like { name: 0, age: 0 }. The case on L308 is looking to capture the case where the user does something like { name: 1, __t: 0 } as a way to explicitly exclude __t, which is included by default. So if (!exclude) is correct, and happens to fix the bug in #13679 as well

Examples

@vkarpov15 vkarpov15 added this to the 7.4.3 milestone Aug 11, 2023
@vkarpov15 vkarpov15 merged commit 48edaf1 into master Aug 11, 2023
33 of 34 checks passed
@AbdelrahmanHafez AbdelrahmanHafez deleted the vkarpov15/gh-13679 branch August 11, 2023 17:42
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.

select method is not removing __t field -__t
2 participants