const fields = ['color','price'];
const tableName = "" + projectName + '-widgets-' + stage;
Widget = makeDynamoFuncs(tableName,fields);
Widget.create({color: 'Green', price: 10}).then(function(widget) {
// done
});
Widget.getAll().then(function(widgets) {
console.log(widgets.length);
});