Dynamodb global secondary index not working properly

Viewed 1349

I have created a global secondary index in my dynamo db table as shown in the below screenshot -

dynamodb GSI creation

But when I am filtering data using this GSI it is not fetching any data as shown in the below screenshot -

dynamodb query

I have also placed a screenshot of the sample data below -

enter image description here

1 Answers

That was a stupid mistake of mine. In my GSI that I have created is a string, but admin_id is a number.

Related