These are chat archives for LearnBoost/mongoose
I am using
firstname.lastname@example.org and trying to work with Koa.js. I knew that the latest Mongoose is returning the Promise object. Well, but there is no good documentation on it.
How could I build up the MongoDB connection? does it work like previous v3.8.0?
mongoose.connect('mongodb://.....'); Do I need to yield this? By looking at the source of this function, it does not return an Promise
var db = mongoose.createConnection(opts.dbURI); console.log('typeof db.then: ', typeof db.then); // undefined
yieldstatement. What I understand is, connect operation does not take long time, does not do async. By accessing Mongoose schema, and model on the destination database is fairly quick operation, ONLY CRUD to the DB would