node-red-contrib-dynamodb-scan 0.0.4
A Node-RED node to read from Amazon DynamoDB
Wrap aws sdk dynamo db scan functionality.
Usage
Input
Payload input expects key, reservedKey, value and operator. Reserved keys such as year
or name
need to be substitued with a key that isn't reserved.
{
key: "nme",
reservedKey: "name",
value: true,
operator: "="
}
Output
Response from asw-sdk passed directly to msg.payload.
Items
- response array.Count
- number of items returnedScanned Count
- number of items scanned.
Example
{
"Items": [
{
"name": "John"
}
],
"Count": 1,
"ScannedCount": 4
}
Todo
- Multiple scan parameters
- Default to
key
if reserved key isn't present or could even accept justkey
and always provide a substition for the reserved key. i.e. pass inname
and substitue withname_reserved_key
.