Closed medolino closed 2 years ago
Summary
I find out that Query.prototype.map was renamed to Query.prototype.transform in mongoose 6 (see: https://github.com/Automattic/mongoose/commit/1e485dfdd1ed89235ce68f0f413bce15085c2052). I added additional check for this.transform and kept this.map to ensure backward compatibility. Resolves #6.
Query.prototype.map
Query.prototype.transform
this.transform
this.map
Summary
I find out that
Query.prototype.map
was renamed toQuery.prototype.transform
in mongoose 6 (see: https://github.com/Automattic/mongoose/commit/1e485dfdd1ed89235ce68f0f413bce15085c2052). I added additional check forthis.transform
and keptthis.map
to ensure backward compatibility. Resolves #6.