Skip to content

Instantly share code, notes, and snippets.

@robzhu
Created May 2, 2019 18:00
Show Gist options
  • Save robzhu/4fcb4c74db7c957e7e0711c59786831e to your computer and use it in GitHub Desktop.
Save robzhu/4fcb4c74db7c957e7e0711c59786831e to your computer and use it in GitHub Desktop.
{
TableName,
Key,
UpdateExpression: `REMOVE friends[${indexToRemove}]`,
ConditionExpression: `friends[${indexToRemove}] = :valueToRemove`,
ExpressionAttributeValues: {
":valueToRemove": friendName
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment