Function to scan AWS Dynamo DB recursively for Nodejs

Question:

So I need a recursive function in node.js for replacing this function call:

docClient.scan(params, callback)

More info see http://docs.aws.amazon.com/amazondynamodb/latest/gettingstartedguide/GettingStarted.NodeJs.04.html

Answer:

Here is the recursive code to execute the scan until LastEvaluatedKey is available.

Leave a Reply