I have a not so complex set of data, but I am struggling to make a query.
Let's say that I have a main vertex with id 1. That vertex has edges to vertices 10, 11, and 12. Each of those vertices have edges to 100 and 101.
If I do something like this:
g.V(1).inE('type').project('e', 'v').by().by(outV().valueMap())
I get a list of vertices: 10, 11 and 12, but I don't get the list of 100 and 101. I assume that I can do something with coalesce or something, but I can't figure out the proper way of doing this.
Also, down the line I want to filter the 10, 11 and 12 vertices based on one 100 and 101 property. Meaning that if 100 has a property like x = 1 and 101 has a property x = 2, I want to get only the vertices (in the 10-12 set) that point to the vertex that has x = 1.