Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Short example of node.js Express method to POST resource data into DynamoDB. This was just a snippet for my blog to illustrate the type of transformation DynamoDB requires. Assume the data has already been validated, and DynamoDB connection established. (req, res) ->
params =
TableName: 'TableName'
S: req.body.color
SS: req.body.tags
N: req.body.count
ddb.client.putItem params, (error, data) ->
if !error?
res.end 201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment