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.
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