Skip to content

Conversation

@lfantone
Copy link

@lfantone lfantone commented Jan 21, 2021

I added a new property autoPagination to the options object with a default to true so It keeps the same functionality as before.

The idea behind this PR is to allow a user to implement pagination in an API using the DynamoDBWrapper as main client.
When the autoPagination property is set to false, it will skip the iteration for fetching all other pages from DynamoDB. Also adds the LastEvaluatedKey property to the response.

@lfantone lfantone changed the title feat: pagination feat: allow optional pagination feature for query and scan operation Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant