0

Given this vertex: g.addV().property('numbers',1).property('numbers',2).property('numbers',3).next()

I would like to select only the last value (3) in the numbers set. How can this be accomplished? I've reviewed the docs and not found a clear means of doing this.

JTW
  • 3,546
  • 8
  • 35
  • 49

1 Answers1

4

You could do something like:

gremlin> g.V(0L).values('numbers').tail()
==>3
stephen mallette
  • 45,298
  • 5
  • 67
  • 135