Multiple unknown number of properties create or update in an edge


dimi...@...
 

Hello all,

I have a situation where I need to update an edge with properties that do not know the number of and they can be existing or new ones. So i need to find a way to do this dynamically. I managed to do the same for the vertices as you can see below.

graph =JanusGraphFactory.open("conf/test.properties")
g = graph.traversal()
test = [["testKey":"testValue"]]
g.inject(test).unfold().as("test").
V(20704).as("v").
sideEffect(select("test").
unfold().as("kv").
select("v").
property(select("kv").by(Column.keys),
select("kv").by(Column.values))).
iterate()

Is there any way to do the same for the edges because I am trying and i have not managed to do so far. ThanksĀ 

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.