I am using node.js.
If you look at this example:
https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Scan.html
It says:
aws dynamodb scan \
--table-name Movies \
--projection-expression "title" \
--filter-expression 'contains(info.genres,:gen)' \
--expression-attribute-values '{":gen":{"S":"Sci-Fi"}}' \
--page-size 100 \
--debug
Where page-size
limits the number of result items:
Ordinarily, the AWS CLI handles pagination automatically; however, in this example, the CLI's --page-size parameter limits the number of items per page.
But if you read the Node.js AWS documentation:
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#scan-property
There is no parameters associated with "page-size".
(Only Limit
which limits the number of items being scanned, not returned).
How do I limit the number of returned items (that satisfies my condition)?