From a traverser, if I just want the first item in the list of vertexes, how would I go about returning it as an object?
I've tried:
g.V()
.has("Project", "id", eq("someid"))
.outE("Contains")
.inV()
.hasLabel("Goal")
.sample(1)
.values("name")
Also tried:
g.V()
.has("Project", "id", eq("someid"))
.outE("Contains")
.inV()
.hasLabel("Goal")
.limit(1)
.values("name")
I've also tried fold but none of them worked for me. Any ideas?