Created
July 6, 2021 19:39
-
-
Save spmallette/6e8ede3fc22ce4cb3c89b155c638799d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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