Dynamoose: Support for Promises for functions with callbacks

Created on 30 Nov 2016  路  2Comments  路  Source: dynamoose/dynamoose

It would be useful to add support for Promises for the functions with callbacks (ie. query.exec, scan.exec, etc)

Most helpful comment

It does.

Here's an example:

```
var query = Something.query('id').eq('abc123');
query.exec()
.then(function (things) {
...
})
.catch(function (err) {
...
});

All 2 comments

It does.

Here's an example:

```
var query = Something.query('id').eq('abc123');
query.exec()
.then(function (things) {
...
})
.catch(function (err) {
...
});

Oh cool, I'll need to reflect that in the typescript definition

Was this page helpful?
0 / 5 - 0 ratings