Closed dungkaka closed 1 year ago
mongoose-lean-getters 1.x requires Mongoose 7.1 or greater, because isPathSelectedInclusive
was added in Mongoose 7.1. Upgrade to Mongoose ^7.1.0
and this issue will go away.
Is there anyway that this can be added to the documentation or at least the README file? Not knowing this caused me days of work. Thank you for your work in this space.
@orimdominic "peerDependencies" lists Mongoose 7.1.0 as the minimum supported version of Mongoose for this plugin, npm install
will log a warning if you try to install this package with a version of Mongoose that's < 7.1.0. We'll add the minimum supported version to the README, but I'd recommend you not ignore peerDependencies warnings.
This bug happens when I populate document have subdocument that also uses getter. And I go to file: node_modules/mongoose-lean-getters/index.js:84:15 to check and no function isPathSelectedInclusive declare !
Versions: "mongoose": "^7.0.3", "mongoose-lean-getters": "^1.0.0",