Created
September 5, 2014 22:31
-
-
Save neumino/c7cd56479700fd01f035 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
r.db('test').table('foo').update(function(doc) { | |
return doc.merge({foo: {channel: doc("id").add(doc("name")) }}) | |
}) |
@cultofmetatron -- the string concatenation is done on the server, so you must use a ReQL term to perform it.
If you replace
channel: name + '_error_' + user('id'),
with
channel: r.expr(name).add('_error_').add(user('id')),
(and the same for _success
), it should work.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is what I'm currently getting with name=foobar