Dynamodb query error - Query key condition not supported

前端 未结 2 659
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-17 10:20

I am trying to query my dynamodb table to get feed_guid and status_id = 1. But it returns Query key condition not supported error. Please find my table schema and query.

2条回答
  •  半阙折子戏
    2020-12-17 11:01

    Another option would be to use a FilterExpression in addition to the KeyConditionExpression. As Daniela mentioned KeyConditionExpression should contain only columns in the hash key. But any un-indexed columns can be included in the FilterExpression.

提交回复
热议问题