Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 699 Bytes

File metadata and controls

35 lines (27 loc) · 699 Bytes
layout api-command
language JavaScript
permalink api/javascript/zip/
command zip
io
stream
stream
array
array
related_commands
eqJoin innerJoin outerJoin
eq_join/
inner_join/
outer_join/

Command syntax

{% apibody %} stream.zip() → stream array.zip() → array {% endapibody %}

Description

Used to 'zip' up the result of a join by merging the 'right' fields into 'left' fields of each member of the sequence.

Example: 'zips up' the sequence by merging the left and right fields produced by a join.

r.table('marvel').eqJoin('main_dc_collaborator', r.table('dc'))
    .zip().run(conn, callback)