1
0
Fork 0
arangodb/Documentation/Examples/graph-edge-get-property-keys

15 lines
239 B
Plaintext

arango> v = g.addVertex(1);
Vertex(1)
arango> e = g.addEdge(v, v, 2, "self", { weight: 10 })
Edge(2)
arango> e.getPropertyKeys()
[ "weight" ]
arango> e.setProperty("name", "Hugo");
Hugo
arango> e.getPropertyKeys()
[ "weight", "name" ]