[BUG] - Using .lean() doesn't transform nested populate #903
Labels
bug
Something isn't working
not a typegoose issue
This is not a typegoose issue / This pr addresses something that shouldnt be in typegoose
Versions
What is the Problem?
Just to clarify from a start, yes i know this might be wrong usage:
Using this code to populate paths doesn't get transformed when populating paths with
.lean()
option.Code Example
Structure:
User.debtor[REF].discounts[ARRAY].discount[REF]
Do you know why it happens?
no, but I'm guessing the code to populate supports the option while the code to transform/lean doesn't?
I can't upgrade to latest versions at current time, so I can't confirm but still suspect this is an issue there.
The text was updated successfully, but these errors were encountered: