5

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

12
  • can you do a screenshot of a data sample also? Commented Oct 15, 2019 at 10:00
  • Does the key admin_id with the value of 24 exist? Commented Oct 15, 2019 at 10:27
  • @hephalump yes it does exist Commented Oct 15, 2019 at 10:30
  • Please show it as @HoratiuJeflea requested Commented Oct 15, 2019 at 10:31
  • 1
    Thanks. In your GSI that you created its a string, but it looks like admin_id is a number. Commented Oct 15, 2019 at 10:35

1 Answer 1

7

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.