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: add __v to lean() result type and ModifyResult #14990

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

vkarpov15
Copy link
Collaborator

Re: #12959

Summary

Technically __v always exists on hydrated documents, unless versionKey option is set to false in the schema. Admittedly most developers don't use __v directly, but #12959 pointed it out.

Examples

@vkarpov15 vkarpov15 added this to the 8.8 milestone Oct 28, 2024
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Oct 29, 2024
@vkarpov15 vkarpov15 merged commit 95e182a into 8.8 Oct 29, 2024
5 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-12959-versionkey branch October 30, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Types or Types-test related issue / Pull Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants