Skip to content

Instantly share code, notes, and snippets.

@jakcharlton
Created December 12, 2013 23:21
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 jakcharlton/7937379 to your computer and use it in GitHub Desktop.
Save jakcharlton/7937379 to your computer and use it in GitHub Desktop.
Left/Right field renaming in RethinkDB
: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