Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created June 14, 2017 14:10
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 matthieu-D/a9c68db96f78a29f3f6217def1d9aa05 to your computer and use it in GitHub Desktop.
Save matthieu-D/a9c68db96f78a29f3f6217def1d9aa05 to your computer and use it in GitHub Desktop.
var params = {
TableName: 'ionic-mobile-hub-tasks'
};
dynamo.describeTable(params, function(err, data) {
if (err) {
console.log(err); // an error occurred
}
else {
console.log(data.Table.ItemCount);
var responseBody = {
received: true,
itemCount: data.Table.ItemCount
};
.
.
.
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment