Skip to content

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

Open
doguhanokumus wants to merge 1 commit into
wheresvic:masterfrom
doguhanokumus:lean-for-post-find-findone
Open

.lean() with post-hook of .find and .findOne#65
doguhanokumus wants to merge 1 commit into
wheresvic:masterfrom
doguhanokumus:lean-for-post-find-findone

Conversation

@doguhanokumus

Copy link
Copy Markdown
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
Copy Markdown
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