well i just assumed this would be easy. i have all the working parts done it just doesn’t let me return teh results.
Try returning the ddb.scan itself and calling .thens on it and see if you can console.log the result
This won’t work because you have to manually make it a promise first
Just fiddle with it. If I could solve it in a couple hours on a Sunday and i know next to nothing you can solve it today for sure
i mean i am calling scan it allows me to pass in a bunch of parameters and a callback function.
Yeah since you’re using node you can use bluebird for a promise library or yeah just writing promises yourself
Another fucking third party library
Es6 has all this functionality natively right
Im a big fan of librarbys
Yep hes using es6 too
This is what I had used I think
The problem is you have certain es6 features that won’t work with aws - which maybe isn’t an issue if he’s just calling dynamo and not doing that other stuff
And the other problem is googling this stuff is awful
someone write me a promise
Send your code to dan and have him implement ‘bluebird’
He’s probably better at this stuff than both of us honestly
Aren’t we all
Does promise let me wrap a fucbtion in a return it something.
Ya
alright i guess tahts all i need family
I really fucking hate JS