Closed nicolas-marien closed 6 years ago
Almost the same as #11 but here it is for when used w/ .lean({ virtuals: true }). In the case this plugin is hooked on transforms, which are applied in a .reduce (here), but undefined is returned since the document is mutated but not returned.
.lean({ virtuals: true })
.reduce
undefined
Thank you for merging this ! 🍪
Almost the same as #11 but here it is for when used w/
.lean({ virtuals: true })
. In the case this plugin is hooked on transforms, which are applied in a.reduce
(here), butundefined
is returned since the document is mutated but not returned.