I am trying to scan a DynamoDB table which may be more than 1 MB, so I'm using ExclusiveStartKey
. I've been going through all the examples in How to fetch/scan all items from `AWS dynamodb` using node.js but I'm getting an error in this line: scanParams.ExclusiveStartKey = items.LastEvaluatedKey;
src/services/DynamoDB.ts:33:18 - error TS2339: Property 'ExclusiveStartKey' does not exist on type '{ TableName: any; }'.
33 scanParams.ExclusiveStartKey = items.LastEvaluatedKey;
~~~~~~~~~~~~~~~~~
Found 1 error.
This kind of makes sense because the scanParams
usually have just the table name and no other keys. So, how do I get rid of this error?