Skip to content

Query assistance with RepeatUntil #477

Answered by danielcweber
AnthonyRyck asked this question in Q&A
Discussion options

You must be logged in to vote

The V<StationVertex> mid-query is not in the original query:

That's why the resulting Gremlin-query differs in exactly that spot!

Try

var temtt = await _g
                .V<StationVertex>(startStation.Id)
                .RepeatUntil(__ => __.Out().SimplePath(),
			__ => __.Where(x => x.StationName == "nameStop"))
                .Path().Limit(1);

instead which should be more what you intended and see what it does.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@AnthonyRyck
Comment options

@AnthonyRyck
Comment options

Comment options

You must be logged in to vote
1 reply
@AnthonyRyck
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by AnthonyRyck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants