Step - id

id ยท category: Values and properties

Yields the id of each vertex or edge (a string).

Forms

id()

Example

g.v().has("name", "josh").id().to_list()   // ["4"]