Skip to content

Instantly share code, notes, and snippets.

@robzhu
Created May 2, 2019 18:15
Show Gist options
  • Save robzhu/1968dd06a500e0e9454f888f6eeccce5 to your computer and use it in GitHub Desktop.
Save robzhu/1968dd06a500e0e9454f888f6eeccce5 to your computer and use it in GitHub Desktop.
import * as AWS from "aws-sdk";
const DynamoDB = new AWS.DynamoDB.DocumentClient();
DynamoDB.put({
TableName,
Item: {
id: "1234",
name: "carl",
friends: DynamoDB.createSet(["meatwad", "frylock", "shake"])
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment