I'm doing something similar to this post:
titan - Gremlin - how do you merge vertices to combine their properties without listing the properties explicitly? - Stack Overflow
My use case is pretty simple. The graph looks like this: v1 ---hasChange--> v2 ---hasChange---> v3.
My query looks like this:
g.V('v1').aggregate('A').
until(__.not(out('hasChange'))).
repeat(out('hasChange').aggregate('A)).
cap('A').
unfold().
valueMap().
unfold().
group().
by(select(keys)).
by(select(values))
If v1 has 'name': 'Mike' and v3 has 'name': 'Jane', then the query above returns 'Jane' for the 'name', which is what I want.
However, from the post linked above, there is this comment: "Note, that there are two name properties and in theory you won't be able to predict which name makes it into your merged result..."
What does this mean? I'm hoping it doesn't mean that sometimes 'Mike' would be returned as the value in the 'name' property. If it does mean that, under what circumstances might this happen, and how can I avoid it?
Thanks!