Step - merge_e
merge_e · mergeE · category: Changing the graph
Upsert of an edge: finds the edge matching the map (T.label, Direction.OUT/IN ids, properties) or creates it (see the book page Upserts).
Forms
merge_e()
merge_e(arg1: any)
Example
g.merge_e(#{"T.label": "knows", "Direction.OUT": "1", "Direction.IN": "2"}).id().next() // 0