You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi,
When querying against a table using an LSI we founf that the generated
nextToken
returned isn't valid to use as aExclusiveStartKey
.If you pass the token that was returned as the
from
inpaginateQuery
DynamoDB returnsValidationException: 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.The text was updated successfully, but these errors were encountered: