Created
May 6, 2015 21:21
-
-
Save dancannon/b7bdcf0711946f6f899d to your computer and use it in GitHub Desktop.
This file contains 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
var id = 3; | |
r.branch( | |
r.table("test").get(id), | |
r.table("test").get(id).update({a: r.row("a").add(1)}), | |
r.table("test").insert({id: id, a: 1}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment