Step - merge_v

merge_v · mergeV · category: Changing the graph

Upsert of a vertex: finds the vertices matching the map or creates one; option(Merge.onCreate/onMatch, ..) adds properties (see the book page Upserts).

Forms

merge_v()
merge_v(arg1: any)

Example

g.merge_v(#{"T.label": "person", name: "marko"}).values("age").next()   // 29

See also