You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by waleedshkt January 24, 2025
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 and uid sort key. The sort key is hash (string)
Here is my code for querying to get al items with specific partition key:
Update:
I even checked it with ConsistentRead set to true. But the items are just not returning despite being able to do so in console with same query.
The text was updated successfully, but these errors were encountered:
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Discussed in #6847
Originally posted by waleedshkt January 24, 2025
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
Update:
I even checked it with
ConsistentRead
set totrue
. But the items are just not returning despite being able to do so in console with same query.The text was updated successfully, but these errors were encountered: