Step - emit

emit ยท category: Branches and loops

Within repeat(): also emits the traversers of intermediate iterations (all, or those that match the child traversal or predicate).

Forms

emit()
emit(arg1: any)

Example

g.v(1).repeat(__.out()).times(2).emit().values("name").to_list()   // ["josh", "lop", "vadas", "ripple", "lop"]

See also