Skip to content

Instantly share code, notes, and snippets.

@muhmi muhmi/ddb example
Created Oct 22, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.