Query assistance with RepeatUntil #477
-
Hello,
Its to find the best path between 2 stations (Vertex).
The result give me just the 2 vertices StationVertex Out on start station. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Call Debug() on the query, it'll return a gremlin string. From there you'll find where the difference to your original query is. |
Beta Was this translation helpful? Give feedback.
-
__ is the anonymous traversal. It's also a concept in Gremlin (see https://tinkerpop.apache.org/docs/current/reference/). It starts off where the outer traversal left off. As such, your use of __ => __.V<StationVertex>() is in error, it's not in your original query. Just leave it out but use V<StationVertex> at the top of your query instead. |
Beta Was this translation helpful? Give feedback.
-
The That's why the resulting Gremlin-query differs in exactly that spot! Try
instead which should be more what you intended and see what it does. |
Beta Was this translation helpful? Give feedback.
The
V<StationVertex>
mid-query is not in the original query:That's why the resulting Gremlin-query differs in exactly that spot!
Try
instead which should be more what you intended and see what it does.