Step - element_map

element_map · elementMap · category: Values and properties

Turns each vertex or edge into a map of the T.id and T.label tokens (an edge also Direction.OUT and Direction.IN) and the given (or all) properties, written "id", "label", "OUT", "IN" outside the engine where a property of the same name wins (see the book page Properties Named id or label).

Forms

element_map()
element_map(arg1: any)
element_map(arg1: array)
element_map(arg1: any, arg2: any)
element_map(arg1, …, arg10)

Example

g.v(1).element_map("name").next()   // #{"id": "1", "label": "person", "name": "marko"}