Skip to content

Mongoose: mpromise (mongoose's default promise library) is deprecated... #12

@TheoNolasco

Description

@TheoNolasco

Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html

I've been getting this warning since July or so. From the details that I looked here: Automattic/mongoose#4291

The maintainer explains that the message tells you change from mongoose's default promise library. From the thread above, a fix would be to declare

mongoose.Promise = global.Promise;

(or another promise library) before the connect, which I have been doing interim.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions