how can we update dynamodb table based on index(not based on primary has and range key)
问题 how can we update dynamodb table based on index(not based on primary has and range key). I have a index created by name key_id-index and hash is asset_id and range is hit_id . i want to update the table based on key_id-index because i wouldn't know those while updating. var paramsu = { TableName: 'asset', //IndexName: 'key_id-index', Key: { // The primary key of the item (a map of attribute name to AttributeValue) asset_id: { S: 'a' }, hit_id: { S: 'h' } // more attributes... },