I'm not sure what you want to achieve exactly, but here are two possible solutions:
FOR v IN 0..100 ANY "Entity/node_id" EntityRelation OPTIONS {uniqueVertices: "global"}
FOR vv, c IN ANY v EntityRelation
RETURN c
Above query uses a nested for-loop (actually traversal) to perform a traversal for each node returned by the outer traversal, using v
as start vertex and ignoring the direction of the edges. The entire edge documents of the inner traversal are returned.
If you want the edges of the outer traversal, this isn't even necessary:
FOR v, e IN 0..100 ANY "Entity/node_id" EntityRelation OPTIONS {uniqueVertices: "global"}
RETURN e
If you want to access the traversal results later in your query, turn it into a subquery and assign the result to a variable:
LET nodes = (
FOR v IN 0..100 ANY "Entity/node_id" EntityRelation OPTIONS {uniqueVertices: "global"}
RETURN v._id
)
FOR node IN nodes
FOR vv, c IN ANY node EntityRelation
RETURN c
Note that the first traversal returns only document IDs. They are sufficient to start another traversal from these nodes, and no other properties of the vertices are used in this query anyway. Returning the whole documents would work as well, but is not as efficient.