1
0
Fork 0
arangodb/Doxygen/Examples.Durham/graph-edge-set-property

15 lines
213 B
Plaintext

arango> v = g.addVertex(1);
Vertex(1)
arango> e = g.addEdge(v, v, 2, "self", { weight: 10 })
Edge(2)
arango> e.getPropert("weight")
10
arango> e.setProperty("weight", 20);
20
arango> e.getPropert("weight")
20