I am new to gremlin.I need to convert my cypher query to gremlin.
My cypher query:
match(s:Student)-[:STUDIED_AT]-(c:College)
with s,c
match(s)-[:LIVES_IN]-(l:Location)
return s,c,l limit 10
I need to convert this to gremlin. My question is , here in cypher with the help of 'WITH' I was able to reuse student Vertex in later part of query .How do I do that in gremlin?