Skip to content

Instantly share code, notes, and snippets.

@mbroadst
Created October 14, 2015 22:00
Show Gist options
  • Save mbroadst/4d1a34ae2781ae7ab055 to your computer and use it in GitHub Desktop.
Save mbroadst/4d1a34ae2781ae7ab055 to your computer and use it in GitHub Desktop.
function doThing(key) {
var updateData = {};
updateData[key] = r.row(key).add(1);
return r.db('test').table('blah').get("350226c0-5572-42a9-9d31-e5658d1392e7")
.update(updateData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment