select
Select labeled steps.
Synopsis
select('variable\_name', ... )
Description
The select()
step is a map step that selects labeled steps designated with as()
steps.
This step is typically used to select particular properties from objects earlier in the traversal.
Examples
List meal items and the meals that are linked:
g.V().hasLabel('meal_item').as('item').in().as('meal'). select('item','meal'). by('name').by('mealId')