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

.lean() with post-hook of .find and .findOne #65

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

Conversation

doguhanokumus
Copy link
Contributor

Hi again 😊

I also had to use .lean functionality in our business as we have over 250 queries running throughout our projects and it would take much more time to replace them all.

So I've added the workaround I came up with, mapping after the document(s) are returned with the post hook for find and findOne.

This seems to be working fine with our tests, I hope you can have time to verify and merge soon.

Doguhan

@doguhanokumus doguhanokumus force-pushed the lean-for-post-find-findone branch from 7a16baa to 40cdb16 Compare June 17, 2021 18:04
@wheresvic
Copy link
Owner

Hi @doguhanokumus

This looks good but we definitely need a few tests to verify that the feature works as expected. If you can add them, I'd be happy to merge.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants