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

types(document): make sure toObject() and toJSON() apply versionKey __v #15097

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vkarpov15
Copy link
Collaborator

Fix #15077

Summary

#15077 points out that lean() and toObject() should return compatible types, but currently do not due to __v

Examples

@vkarpov15 vkarpov15 added this to the 8.9.1 milestone Dec 15, 2024
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.create does not have a lean option, and using toObject and toJSON does not produce similar typing
1 participant