-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What do these changes do? ```gremlin gremlin> g.V(1,2,4).elementMap() ==>{label=person, id=1, name=marko, id=1, age=29} ==>{label=person, id=2, name=vadas, id=2, age=27} ==>{label=person, id=4, name=josh, id=4, age=32} gremlin> g.V(1,2,4).elementMap("name", "age") ==>{age=27, label=person, id=2, name=vadas} ==>{age=32, label=person, id=4, name=josh} ==>{age=29, label=person, id=1, name=marko} gremlin> g.V().elementMap() ==>{label=person, id=2, name=vadas, id=2, age=27} ==>{label=software, id=72057594037927941, name=ripple, id=5, lang=java} ==>{label=person, id=1, name=marko, id=1, age=29} ==>{label=software, id=72057594037927939, name=lop, id=3, lang=java} ==>{label=person, id=4, name=josh, id=4, age=32} ==>{label=person, id=6, name=peter, id=6, age=35} ``` Compare to the official result, now **g.E().elementMap()** lack the information of in(out)'s vertices ``` # our result gremlin> g.E().elementMap() ==>{label=knows, id=0, start_id=0.5, end_id=0.5, weight=0.5} # official result gremlin> g.E().elementMap() ==>{label=knows, id=0, start_id=0.5, end_id=0.5, weight=0.5, IN=[label=person, id=0], OUT=[label=person, id=1]} ``` <!-- Please give a short brief about these changes. --> ## Related issue number <!-- Are there any issues opened that will be resolved by merging this change? --> Fixes #2778 --------- Co-authored-by: shirly121 <[email protected]>
- Loading branch information
1 parent
b6402e7
commit 7035c0a
Showing
9 changed files
with
109 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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