Not understanding how to configure bluebird as the default promise library

28 views
Skip to first unread message

Barry Kaplan

unread,
Aug 13, 2015, 5:58:49 AM8/13/15
to Mongoose Node.JS ODM
I have:

M = require "mongoose"
P
= require "bluebird"
M
.Promise = P


I see that bluebird is set into the Promise property defined in index.js.

But when, say, mode.create(...) is invoked it does new Promise() which returns an mpromise instance (model.js:1603)

What am I missing? Should Model.create be using PromiseProvider.get ?
Reply all
Reply to author
Forward
0 new messages