Skip to content

Instantly share code, notes, and snippets.

@dminkovsky
Created July 11, 2014 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminkovsky/a5f82e57de656e547cae to your computer and use it in GitHub Desktop.
Save dminkovsky/a5f82e57de656e547cae to your computer and use it in GitHub Desktop.
r.db('crap').table('junk')
.get(2)
.update({
'revisions': r.row('revisions').append(r.row('revisions').nth(-1).do(function(row) {
return row.merge({
v: row('v').add(1)
})
}))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment