Step - value_map

value_map · valueMap · category: Values and properties

Turns each element into a map of its properties (each value in a list); value_map(true) adds the T.id and T.label tokens, written "id" and "label" outside the engine where a property of the same name wins.

Forms

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

Example

g.v(1).value_map("name").next()   // #{"name": ["marko"]}