buunguyen / mongoose-deep-populate

Mongoose plugin to enable deep population of nested models ⛺
MIT License
469 stars 44 forks source link

Mongoose 5.x and Mongodb 3.6 #59

Open mariohmol opened 6 years ago

mariohmol commented 6 years ago

Hi there!1

I'm trying to use mongo 5.x with Mongodb 3.6, after test this and make everything working i'm planning to move to Mongo 4x.

The problem is that i'm getting an error:

TypeError: Cannot read property 'bind' of undefined
    at createMongoosePromise (/web/node_modules/mongoose-deep-populate/lib/plugin.js:99:32)
    at model.Query.Query.exec (/web/node_modules/mongoose-deep-populate/lib/plugin.js:67:14)
    at model.Query.Query.then (/web/node_modules/mongoose/lib/query.js:3674:15)

This was fully working on mongoose 4.x and Mongo 3.4.

Any ideas?

Thanks