Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save spmallette/34e8c7f7c65b08dcb43b220b50bd0adb to your computer and use it in GitHub Desktop.
Save spmallette/34e8c7f7c65b08dcb43b220b50bd0adb to your computer and use it in GitHub Desktop.
gremlin> g.V('1','2','3').aggregate('a').has(T.id,'1').
repeat(out().where(P.without('a')).aggregate('a')).emit().
select('a')
==>[v[1],v[2],v[3],v[4]]
==>[v[1],v[2],v[3],v[4],v[5]]
gremlin> g.V('1','2','3').aggregate('a').has(T.id,'1').
repeat(out().where(P.without('a')).aggregate(global,'a')).emit().
barrier().
select('a')
==>[v[1],v[2],v[3],v[4],v[5]]
==>[v[1],v[2],v[3],v[4],v[5]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment