mongoose-materialized
mongoose-materialized copied to clipboard
Can't use ES6 promise with mpromise style constructor
If I use the plugin as is, I get a warning:
DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated,
plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
If I replace the default Mongoose promise library with the ES6 promise library
mongoose.Promise = global.Promise;
I get an error from your code:
Error: Can't use ES6 promise with mpromise style constructor
Any Ideas?
I've got the same problem. Is there a fix for this?
+1
Can't make the library work with Mongoose 5 :cry:
Sorry Guys,
I still work on this issue but, i don't have enough time to do fast. I release a new version soon.
Any updates on this?