Say I have a list of three vertices with IDs 123
, 456
, and 789
.
g.V([123,456, 789])
How can I add a new property called say testproperty
, for which I have a list of values, ['a', 'b', 'c']
, which I want to add at the same time?
The pseudo gremlin code - for illustration - and which doesn't work is:
g.V([123,456, 789]).property('testproperty', ['a', 'b', 'c'])
To be clear, I want a mapping between the two lists, so g.V(123).property('testproperty', 'a')
, g.V(123).property('testproperty', 'b')
etc.
So, g.V([123,456,789]).valueMap()
should return:
==>{testproperty=[a]}
==>{testproperty=[b]}
==>{testproperty=[c]}