I'm use bluebird library and promise, How to populate model after Model.Query()? my following code is error:
var Promise = require('bluebird');
var pmodel = Promise.promisify(someModel.query);
pmodel
.("custom sql")
.populate("attributes_id")
.then(function(datas){
console.log(datas)
})
How to do this? thank.