id
Fetch the id of a graph object.
Synopsis
id()
Description
The id()
step is a map step that retrieves the id of a graph object.
Examples
Fetch the id of the person named James Beard:
g.V().has('person', 'name', 'James Beard').id()
Fetch the id of the edge with an edgeLabel created:
g.E().hasLabel('created').id()