Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aterreno opened this issue Apr 23, 2018 · 7 comments

Comments

@aterreno
Copy link

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

@ghost
Copy link

ghost commented May 10, 2018

Did you solve this?

@aterreno
Copy link
Author

@0xd5 I ended up using other libs ;)

@ghost
Copy link

ghost commented May 11, 2018

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
Copy link
Author

aterreno commented May 11, 2018 via email

@libhide
Copy link

libhide commented Jun 18, 2018

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

@RayChew
Copy link

RayChew commented Apr 4, 2019

Following this thread. Hope someone can share a solution

@sookteng
Copy link

sookteng commented Apr 4, 2019

Try with:

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

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

It works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants