mongoosejs / mongoose-lean-getters

Apply getters on lean() documents: https://mongoosejs.com/docs/tutorials/lean.html
Apache License 2.0
10 stars 15 forks source link

fix: allow array getters to return non-arrays #38

Open DesignByOnyx opened 4 months ago

DesignByOnyx commented 4 months ago

Summary

Array getters should be allowed to return non-arrays. This fixes #37 and #36

DesignByOnyx commented 4 months ago

I can report that this fix got all of our tests passing again. We were previously on 0.4.0 (sorry about that). I have the bandwidth to make any additional changes to get this merged, and I can test it against a fairly large 10 year old project being deployed to very large companies.