#to get more than one record by id
batchGet:
sample :
gandalfLib.batchGetAsync({
'gandalf-stores':{
Keys:[
{storeId:'s11102015194715'},
{storeId:'s11102015195653'},
{storeId:'s11102015102325'},
{storeId:'s11102015102447'},
{storeId:'s11102015194313'}
]
}
}
)
.then(function(res){
console.log('success batchget',res.Responses);
})
.catch(function(err){
console.log('error batchGet',err);
})
#to get data by spesific filter
listSpesificAsync:
sample:
gandalfLib.listSpesificAsync({tableName:'gandalf-orders',attributesToGet:['dateTime']},{
dateTime:{
AttributeValueList:['2015-10-10 8:1:3','2015-10-11 19:5:33'],
ComparisonOperator:"BETWEEN"
}
})
.then(function(res){
console.log('success',res)
})
.catch(function(err){
console.log(err)
})