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 using - syntax #13929

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

vkarpov15
Copy link
Collaborator

Fix #13760

Summary

The issue is that, if using only - paths, applyPaths() doesn't set the correct value for exclude because all minus paths are stripped out until we sort through the schema to tell if this is deselecting a default selected path from the schema or not.

Examples

@vkarpov15 vkarpov15 merged commit 2f9fb26 into master Oct 4, 2023
42 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-13760 branch October 4, 2023 19:06
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.

Can only omit discriminator field if _id is also selected
2 participants