Created
July 11, 2014 22:19
-
-
Save dminkovsky/a5f82e57de656e547cae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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