AWS dynamoDB executeStatement pagination

Viewed 700

I want to use PartiQL to query DynamoDB and paginate the result.

According to the doc https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#executeStatement-property. The query result gives lastEvaluatedKey

The doc says If LastEvaluatedKey is present in the response, you need to paginate the result set.

But the doc does not way how to paginate the result. executeStatement does not take lastEvaluatedKey as a parameter.

I want to use Limit to get 10 items at a time. Like 10 items, the next page get another 10 items.

Is this possible with executeStatement?

1 Answers
Related