question

Ved Fs avatar image
Ved Fs asked

dynamodb query not working

Following is the code in a function. console logs before and after this code is working, not sure why data from db is not picked up. Please help. Thanks. datadb is the table and has key field as "id" . var AWS = require('aws-sdk'); var dynamodb = new AWS.DynamoDB({ region: 'us-east-1' }); dynamodb.query({ TableName : 'datadb', KeyConditionExpression: '#fid = :v', ExpressionAttributeNames:{ '#fid': 'id' }, ExpressionAttributeValues: { ':v': {'S': '1'} }}, function(err, data) { if (err) {console.log("err object" +err); speechOutput = err; } else { console.log(data); } } );
alexa skills kitsubmission testing certification
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered
Thanks Ved Fs, If you could please post your solution, that would be greatly appreciated, as it can help the larger developer community. Thank you!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.