Daniel-t / node-red-contrib-aws

A collection of Node-RED nodes for AWS.
Apache License 2.0
56 stars 59 forks source link

DynamoDB usage examples Please #85

Open rossyell opened 2 years ago

rossyell commented 2 years ago

Much appreciate this pack of nodes. I am interfacing to AWS dynamoDB and have some nodes, i.e the scan node working well. I am however battling to get the get GetItem or Query nodes working - and think it has something to do with the way I am passing the parameters to your node. Typical errors are "SyntaxError: Unexpected token c in JSON at position 2" for Getitem and "failed: ValidationException: Either the KeyConditions or KeyConditionExpression parameter must be specified in the request. " for Query.

I have read extensively but am just not getting it right. Are you able to expand your usage instructions with some examples of use.

jeanmichel-nwsb commented 2 years ago

Without providing more details on what parameters leads to those errors, it may be difficult to help But for example with GetItem, it was not obvious but you must follow strictly the syntax of the Key for example { "somefield": "somevalue" } will not work but must be { "somefield": { "S": "somevalue" } See the description of GetItem in AWS docs Testing your parameters using AWS cli may be usefull too