Skip to content

Instantly share code, notes, and snippets.

@okram
Created July 18, 2014 23:07
Show Gist options
  • Save okram/c1cb3a922fc90477d652 to your computer and use it in GitHub Desktop.
Save okram/c1cb3a922fc90477d652 to your computer and use it in GitHub Desktop.
gremlin> g.V.choose({it.get().value('name').length() - 3}, g.of().identity, g.of().out, g.of.in).name
==>marko
==>lop
==>ripple
==>lop
The following choice index does not reference a traversal: 3
Display stack trace? [yN]
gremlin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment