Created
December 27, 2019 03:33
-
-
Save ssullivan/e6a9942a7fc40f1bf1e95b040c3d8082 to your computer and use it in GitHub Desktop.
Gremlin
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
| g.E() | |
| .Union<IDictionary<object, object>>(__ | |
| .Project<object>("e", "v", "IN", "OUT") | |
| .By(__.Id()) | |
| .By(__.ValueMap<object, object>(true)) | |
| .By(__.InV().Union<object>(__.Id(), __.Label()).Fold()) | |
| .By(__.OutV().Union<object>(__.Id(), __.Label()).Fold())) | |
| .ToList() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment