@awspilot/dynamodb

Issue Star Fork
get.js
get_attributes.js
// getting an item from a HASH-RANGE table, with consistent read DynamoDB .table('messages') .where('to').eq('user1@test.com') .where('date').eq( 1375538399 ) .consistent_read() .get(function( err, data ) { console.log( err, data ) });
// specifying what attributes to return DynamoDB .table('users') .select('email','registered_at','object.attribute','string_set[0]','array[1]') // you can also pass an Array as parameter: .select(['attr1','attr2']) .where('email').eq( 'test@test.com' ) .get(function( err, data ) { console.log( err, data ) });