Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save spmallette/6e8ede3fc22ce4cb3c89b155c638799d to your computer and use it in GitHub Desktop.
Save spmallette/6e8ede3fc22ce4cb3c89b155c638799d to your computer and use it in GitHub Desktop.
gremlin> g = TinkerFactory.createModern().traversal()
==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
gremlin> g.V(3).property('lang','ruby')
==>v[3]
gremlin> g.V().has("name","lop").values("lang").as("l").V().has("lang", __.select("l")).values('lang')
==>ruby
==>java
gremlin> g.V().has("name","lop").values("lang").as("l").V().has("lang", __.where(eq("l"))).values('lang')
==>ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment