Skip to content

Instantly share code, notes, and snippets.

@muhmi
Created October 22, 2015 10:45
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 muhmi/8161f029315daad44f47 to your computer and use it in GitHub Desktop.
Save muhmi/8161f029315daad44f47 to your computer and use it in GitHub Desktop.
var params = {
Key: { cognitoId:{ S: cognitoId } },
TableName: "people",
UpdateExpression: "SET #attrName =:attrValue",
ExpressionAttributeNames : {
"#attrName" : "cheater"
},
ExpressionAttributeValues : {
":attrValue" : {
"S" : "TRUE"
}
}
};
dynamo.updateItem(params, function(err, data) {
if (err) {
console.log("Oops!");
console.log(err, err.stack);
}
cb();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment