Step - with_side_effect
with_side_effect · withSideEffect · category: Sack and side effects
Starts the traversal with a named side effect holding the given value (optionally with a reducing Operator).
Forms
with_side_effect(arg1: string, arg2: any)
with_side_effect(arg1: string, arg2: any, arg3: any)
Example
g.with_side_effect("x", [1]).v(1).values("age").aggregate("x").cap("x").next() // [1, 29]