Announcement: The Alexa Skills Community Is Moving To Stack Overflow

For improved usability and experience, Alexa skills related forum support will be transitioned to Stack Overflow. Effective January 10, 2024, the Amazon Developer Forums will no longer be available. For continued Alexa skills support you can reach out to us on Stack Overflow or via Contact Us.

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.