Step - project

project · category: Labels and paths

Turns each traverser into a map with the given keys, one by() per key in order.

Forms

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

Example

g.v(1).project("name", "degree").by("name").by(__.both().count()).next()   // #{"degree": 3, "name": "marko"}