Why DynamoDB Query not Returning any Items in Low-Level Client? #6847
Unanswered
waleedshkt
asked this question in
Q&A
Replies: 1 comment
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This may sound ridiculous to ask. But on a serious note, I am putting in an item in DynamoDB successfully using
PutItemCommand
. I confirm it by scanning for items in AWS console.But on querying it, the
QueryCommand
is not returning any item (empty array)Primary key is comprised of
_type
partition key anduid
sort key. The sort key is hash (string)Here is my code for querying to get al items with specific partition key:
The item in dynamodb to query against has primary key:
_type = 'apple'
anduid = 'dh46dhdj3jdhd738'
What is possibly wrong? Is using an uncommon underscore prefix in partition key causing any breakage on dynamodb side?
Using
Beta Was this translation helpful? Give feedback.
All reactions