-
Notifications
You must be signed in to change notification settings - Fork 16
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
client.query returns undefined #31
Comments
Which version of the aws-sdk are you using? I'm pretty sure you need a |
@freshollie i'm using the version |
Very interesting. From my point of view, Are you able to produce a reproduction? Does this code work when you connect to a dynamodb-local instance? |
@freshollie
|
Interesting, do you know what the code should do instead of returning undefined? Might it be worth putting in an upstream PR? |
@freshollie idk if this answers your question but the code should return what the query needs which is a result object with the |
@daianaszwimer have you tried executing this expression against a real dynamodb instance? I have a feeling your query is wrong but the |
yes, I have :) The query works fine @freshollie |
I'm executing this function on my test:
And
result
is undefined when it should return an array of items and when it should return an empty arrayI have other queries on my code that have an index that work ok, but this one has an index and a filter expression, and for some reason, it's not working as expected
Attached you can see that when I want to access
result.Items
I get an error becauseresult
is undefinedPS:
this.db
is an instance ofDocumentClient
The text was updated successfully, but these errors were encountered: