Step - aggregate
aggregate ยท category: Aggregation
Collects every incoming value into the named list side effect before passing them on (a barrier); read it with cap() or select().
Forms
aggregate(arg1: string)
Example
g.v().has_label("person").values("age").aggregate("ages").cap("ages").next() // [29, 27, 32, 35]