Created
December 12, 2013 23:21
-
-
Save jakcharlton/7937379 to your computer and use it in GitHub Desktop.
Left/Right field renaming in RethinkDB
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
:20] <jakcharlton> Is there a simple way of renaming that doesnt need to iterate data (inefficiently) ? | |
[10:20] <@neumino> You can chain your eqJoin/innerJoin/outerJoin with | |
[10:20] <@neumino> map( r.row.merge({ contact: r.row("left"), organisation: r.row("right") }).without("left", "right") ) | |
[10:20] <@neumino> And that should do the trick | |
[10:20] <@neumino> There is not a sugar syntax for renaming field yet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment