TypeError: client.newScanBuilder(...).filterAttributeEquals is not a function
Opened this issue · 7 comments
aterreno commented
Hi there, my code looks like:
client.newScanBuilder(tableName)
.filterAttributeEquals('status', 'FOO')
.execute()
.then((users) => {
});
but I get the exception:
TypeError: client.newScanBuilder(...).filterAttributeEquals is not a function
Is the readme up to date?
Thanks
Deleted user commented
Did you solve this?
Deleted user commented
Same here, this had a lot of promise but in the end I just stuck with the AWS SDK. Which lib did you use? @aterreno
aterreno commented
A mix, the raw sdk for some crazy stuff, http://dynastyjs.com for simple
things.
Settling now on https://github.com/clarkie/dynogels
It's pretty awesome, takes a bit to get it configured right but totally
worth it after.
We also use the promisified version to leverage async await syntax
On 11 May 2018 18:38, "Daniel Sutton" <notifications@github.com> wrote:
Same here, this had a lot of promise but in the end I just stuck with the
AWS SDK. Which lib did you use?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#125 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAEpCgpP9fbAYo6qeSoVuQU0u6uzdBX8ks5txcx4gaJpZM4TfuQ6>
.
libhide commented
Having the same issue as the OP. Any way around the issue? I really want to stick with dynamite
.
RayChew commented
Following this thread. Hope someone can share a solution
sookteng commented
Try with:
var filter = client.newConditionBuilder()
.filterAttributeEquals('status', 'FOO');
client.newScanBuilder(tableName)
.withFilter(filter)
.execute()
.then((users) => {
});
It works for me.