luin / express-promise

❤️ Middleware for easy rendering of async Query results.
MIT License
316 stars 19 forks source link

Promise resolution should be recursive #4

Closed OliverJAsh closed 10 years ago

OliverJAsh commented 10 years ago
res.send({ foo: somePromise });

somePromise is resolved with an object that contains another promise, i.e.:

someDeferred.resolve({ bar: someOtherPromise });

express-promise should resolve someOtherPromise, but it stops at somePromise.

lawrencejones commented 10 years ago

Absolutely agree with this. Required feature really.