How to use select with V()
Hello, during my traversal, i found a list of vertex ids, how can i query those vertices in the same traversal without iterating over all vertices and filter them with where ?
g.V()
.group()
.by(T.id)
.by(both().id().fold())
.unfold()
.project("d")
.by(V(select(Column.values)).label())
this is just an illustration, my query is really bigger, but the V(select()) part isn't working, any idea ?
thx
g.V()
.group()
.by(T.id)
.by(both().id().fold())
.unfold()
.project("d")
.by(V(select(Column.values)).label())
this is just an illustration, my query is really bigger, but the V(select()) part isn't working, any idea ?
thx
Solution
Currently, and this may change in the future, the
V() step cannot take a traversal. I think however, that you can simplify that query quite a bit.