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(document): ensure transform function passed to toObject() opt… #14600

Merged
merged 1 commit into from
May 17, 2024

Conversation

vkarpov15
Copy link
Collaborator

Fix #14589
Re: #14565
Re: #14394

Summary

It looks like the last changes from #14565 had the unintended consequence of not passing transform functions down to subdocuments. This PR fixes that, and adds a test to protect against regressions.

Will likely need to do some further work on #14394 since this PR undoes a small perf gain from #14565

Examples

@vkarpov15 vkarpov15 added this to the 8.4 milestone May 17, 2024
@vkarpov15 vkarpov15 merged commit 40805aa into master May 17, 2024
34 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-14589 branch May 17, 2024 11: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.

Document.toObject() does not apply to subdocuments
2 participants