dynamodb icon indicating copy to clipboard operation
dynamodb copied to clipboard

Promise Support

Open andrewmunsell opened this issue 8 years ago • 13 comments
trafficstars

Right now, this module supports callbacks and a streaming API. It would be extremely useful to have a Promise-based API for returning results as well.

Because the stream API is used if a callback isn't returned, a Promise API could follow a similar pattern to the AWS SDK and allow using a chained call to .promise().

For example:

Book.scan()
    .exec()
    .promise()
    .then(console.log)

andrewmunsell avatar Apr 15 '17 17:04 andrewmunsell

I have a PR coming for this.

andrewmunsell avatar Apr 15 '17 18:04 andrewmunsell

Any update?

stakira avatar Aug 12 '17 01:08 stakira

Hey guys, when is it coming? it will be really helpful to support promise.

madhavkaneriya avatar Jun 26 '18 13:06 madhavkaneriya

Pretty please.

medeeiros avatar Jun 27 '18 15:06 medeeiros

+1

pmohan6 avatar Jul 11 '18 08:07 pmohan6

Some updates on the promises support ?

Cheers, Hamlet

hamletrp avatar Sep 26 '18 19:09 hamletrp

Hi Guys, any news on this?

danlazoUgroop avatar Oct 06 '18 01:10 danlazoUgroop

Hi, apparently no... :-(

Hamlet

hamletrp avatar Oct 06 '18 01:10 hamletrp

Still not passing tests.

baseprime avatar Oct 06 '18 02:10 baseprime

Any ETA ?

Thanks for sharing, Hamlet

hamletrp avatar Oct 06 '18 02:10 hamletrp

hi,

Any updates on this? I would be really helpful to have the promise support?

Thanks

snamoah avatar Oct 12 '18 08:10 snamoah

Hi.

What is the progress?

Seiji-myant avatar Aug 14 '20 16:08 Seiji-myant

@Seiji-myant I created a fork and added the promise support... you can check it here

snamoah avatar Aug 14 '20 21:08 snamoah