Hi,
When querying against a table using an LSI we founf that the generated nextToken returned isn't valid to use as a ExclusiveStartKey.
If you pass the token that was returned as the from in paginateQuery DynamoDB returns ValidationException: The provided starting key is invalid.
We found that when using an LSI with the v3 DynamoDB Client the LastEvaluatedKey returned is the HashKey, the table's SortKey and the LSI SortKey.
I think to add support for this would require something like schema being updated to take an optional third parameter to represent the LSI SortKey, which buildLastEvaluatedKey use to return the required keys.
Hi,
When querying against a table using an LSI we founf that the generated
nextTokenreturned isn't valid to use as aExclusiveStartKey.If you pass the token that was returned as the
frominpaginateQueryDynamoDB returnsValidationException: The provided starting key is invalid.We found that when using an LSI with the v3 DynamoDB Client the
LastEvaluatedKeyreturned is the HashKey, the table's SortKey and the LSI SortKey.I think to add support for this would require something like schema being updated to take an optional third parameter to represent the LSI SortKey, which
buildLastEvaluatedKeyuse to return the required keys.