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(debug): avoid putting virtuals and getters in debug output #13778

Merged
merged 1 commit into from Aug 25, 2023

Conversation

vkarpov15
Copy link
Collaborator

Summary

I was losing my mind for a bit figuring out why I was seeing a virtual in my debug output, even though I was passing a POJO into updateOne(). Turns out that debug output will run virtuals and getters by default on document arrays, which doesn't accurately reflect the data passed into the mongodb driver.

Examples

Copy link
Collaborator

@Uzlopak Uzlopak 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.4.5 milestone Aug 25, 2023
@vkarpov15 vkarpov15 merged commit d27d646 into master Aug 25, 2023
42 checks passed
@hasezoey hasezoey deleted the vkarpov15/format-fix branch August 25, 2023 18: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.

None yet

3 participants