Skip to content

Instantly share code, notes, and snippets.

@okram
Created August 11, 2014 19:29
Show Gist options
  • Save okram/7c53793686b6a67e6b29 to your computer and use it in GitHub Desktop.
Save okram/7c53793686b6a67e6b29 to your computer and use it in GitHub Desktop.
gremlin> g.V.match('a',
gremlin> g.of().as('a').out('created').has('name','lop').as('b'),
gremlin> g.of().as('b').in('created').has('age', 29).as('c'),
gremlin> g.of().as('c').out().jump('c',2)).
gremlin> select('c').out('knows').name
==>vadas
==>josh
==>vadas
==>josh
==>vadas
==>josh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment