How to add property to vertex property in java?
问题 I want to add property to a vertex property. In gremlin i add property "phone" to vertex property "places" that has value is "place1" g.V(v).properties('places').hasValue('place1').property('phone',"123456789") It worked ok without using transaction commit. But when i used this way in java code, it not worked. So in java code, how to add a property to vertex property? Thank for your help. 回答1: You need to iterate() the traversal. g.V(v).properties('places').hasValue('place1').property('phone'