-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hi Dave,
I am trying to create a edge but the weight property is not working. Even if I specify the weight its creating a edge without the property.
I used your below example
>>> d = {"name": "dave", "label": "person"}
>>> p = {"name": "python", "label": "lang"}
>>> e = (d, "LIKES", p, {'weight': 1})
>>> graph.create(e)
I traced the gremlin query which was being generated. You can see the weight property is missing.
{"gremlin": "v0 = graph.addVertex(label, p0, 'name', p1, );v1 = graph.addVertex(label, p2, 'name', p3, );e0 = v1.addEdge('LIKES', v0, );graph.tx().commit();[[v0,v1], [e0]];", "bindings": {"p2": "lang", "p3": "python", "p0": "person", "p1": "dave"}, "language": "gremlin-groovy"}
Thanks,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels