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): handle projections on arrays in Model.hydrate() projection option #14686

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14680

Summary

Our applyProjection() helper doesn't currently handle projections underneath arrays. This PR should fix that.

Examples

@vkarpov15 vkarpov15 added this to the 8.4.4 milestone Jun 24, 2024
@vkarpov15 vkarpov15 merged commit 516464a into master Jun 25, 2024
46 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14680 branch June 26, 2024 09:00
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.

Model.hydrate() should work with subdocument array projection
2 participants