Recently I was using DynamoDB with AWS Lambda functions and in this post I would like to share with you few recipes for querying DynamoDB tables from AWS Lambda Node.js function.
In this short post I’ll show you how to get single item and all the items from the database. Former uses query function and the latter will use scan function.
Get item by primary key (query)
Get all items from table (scan)