Skip to content

Instantly share code, notes, and snippets.

@rhossi
Created August 19, 2015 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhossi/51a6c1cdd674fa0a87e6 to your computer and use it in GitHub Desktop.
Save rhossi/51a6c1cdd674fa0a87e6 to your computer and use it in GitHub Desktop.
var AWS = require('aws-sdk');
var dynamodb = new AWS.DynamoDB({apiVersion: '2012-08-10', region: 'us-east-1'});
var params = {
TableName: 'Produtos',
KeyConditionExpression: 'Id = :id',
ExpressionAttributeValues: {
':id' : '1'
}
};
dynamodb.query(params, function(err, data) {
if (err) console.log(err);
else console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment