Skip to content Skip to sidebar Skip to footer
Showing posts with the label Bluebird

How To Wait For The Return Of A Mongoose Search?

I created a CRUD with NodeJS / Mongoose, split the files in MVC style. In route example I show up b… Read more How To Wait For The Return Of A Mongoose Search?

Cannot Read Property Of Undefined After Promise.promisify

let nasPath = ''; return getFamInfo(args.familyID) .then(function (famInfo) { n… Read more Cannot Read Property Of Undefined After Promise.promisify

Under What Circumstances Might Bluebird's "possibly Unhandled Error" Warning Be Wrong?

The word 'possibly' suggests there are some circumstances where you can get this warning in… Read more Under What Circumstances Might Bluebird's "possibly Unhandled Error" Warning Be Wrong?

How To Cast Jquery $.ajax Calls To Bluebird Promises Without The Deferred Anit-pattern

Right now I use promise.deferred in a core file. This allows me to resolve promises at a central lo… Read more How To Cast Jquery $.ajax Calls To Bluebird Promises Without The Deferred Anit-pattern

How To Reuse A Mongo Connection With Promises

How can I change things around in my db connection call so that I can do db.collection(): // Create… Read more How To Reuse A Mongo Connection With Promises

How Do You Call A Function With Parameters In A .then Function In A Javascript Promise String?

I am converting my AWS lambda functions, written in node.js, to use promises instead of callbacks. … Read more How Do You Call A Function With Parameters In A .then Function In A Javascript Promise String?

I Broke My Promise

So.. I'm having the hardest time learning how to Promise. I'm using bluebird (https://githu… Read more I Broke My Promise

How To Call Promise Function In Loop And Save Its Return Value

I have created a promise function(using bluebird) called getBasketObject. This function expects a b… Read more How To Call Promise Function In Loop And Save Its Return Value