union
Merge the results of several traversals.
Synopsis
union(traversal, ... )
Description
The union()
step is a branch step and merges the results of an arbitrary number of traversals that are specified.
Examples
Recipes reviewed by John Smith and the people he knows:
g.V().has('person','name','John Smith').union(out('reviewed'), both('knows').out('reviewed')).dedup()