8 ms·
This is an exact replica in Gremlin3: g.V().has("name","Charlie Sheen"). as("person").out("actedIn").as("movie"). select("movie") However, this ca
by okram 11y ago
This is an exact replica in Gremlin3:
g.V().has("name","Charlie Sheen").
as("person").out("actedIn").as("movie").
select("movie")
However, this can be expressed in a much simpler form as you don't need all the variables. Simply do:
g.V().has("name","Charlie Sheen").out("actedIn")
- cheerfulstoic 11y agoSometimes you do need the labels, depending on what you're trying to query for. If, for example, a person could have acted in both plays and movies, sometimes you might want one or the other specifically.