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

Force mongoose .lean() #101

Closed
wants to merge 1 commit into from
Closed

Force mongoose .lean() #101

wants to merge 1 commit into from

Conversation

leonardootoni
Copy link

Added .lean() on mongoose Queries to avoid mongoose hydration and speedup performance.
It solves that bug when setting TTL from Mongoose Models

@lorensr
Copy link
Member

lorensr commented Aug 13, 2022

I appreciate the contribution, but it looks like the types also need to be updated, so I'll close this in favor of #102

@lorensr lorensr closed this Aug 13, 2022
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.

2 participants