1

I can not solve the problem with Query key condition not supported it works fine if i remove "and #position = :position" from KeyConditionExpression

Hope you will help me.

Thank you.

enter image description here

3
  • Is position attribute defined as sort key and it is numeric as well? Commented Oct 31, 2017 at 14:01
  • Yes it is, it is like a secondary index Commented Oct 31, 2017 at 14:49
  • Thanks mate you really helped me with that sort key :)) i have forgotten to put sort key. Commented Oct 31, 2017 at 14:58

1 Answer 1

2

The position attribute should be defined as sort key in order to use it in KeyConditionExpression.

Please define position attribute as sort key for GSI category-index.

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.