Medium/dynamite

TypeError: client.newScanBuilder(...).filterAttributeEquals is not a function

Opened this issue · 7 comments

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

Did you solve this?

@0xd5 I ended up using other libs ;)

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

Having the same issue as the OP. Any way around the issue? I really want to stick with dynamite.

Following this thread. Hope someone can share a solution

Try with:

var filter = client.newConditionBuilder()
  .filterAttributeEquals('status', 'FOO');

client.newScanBuilder(tableName)
  .withFilter(filter)
  .execute()
  .then((users) => {    
  });

It works for me.