I have a lambda function to fetch the items from dynamoDB. I have already set Limit: 100
but its not working and it gives the response as 413 - Payload Too Large
.
Here is my code and I am using it with documentClient.query
:
{
TableName: <tableName>,
IndexName: <index-value>',
ScanIndexForward: false,
KeyConditionExpression: '#status = :status',
FilterExpression: filterExpression,
ExpressionAttributeNames: {
"#status": "status"
},
ExpressionAttributeValues: expressionAttributeValues,
Limit: 100
};
Kindly share your inputs.
Thank you.