map
Map a portion of the query.
Synopsis
map(traversal)
Description
The map() step is a general map step.
This step creates a map of the traverser to some object for the next step to process.
Examples
List all recipes and a map of their ingredients:
g.V().hasLabel('recipe').as('recipe').
map(__.in('includedIn').values('name').fold()).as('ingredients').
select('recipe','ingredients').
by('name').
by()