When using gremlinpython, is it possible to only return a list of IDs for edges, instead of returning this long winded dictionary?
So, currently g.E().limit(10).id().toList()
returns this:
[{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '4g09-20qw-2dx-1l1c'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '5hxx-9x9k-2dx-4qo8'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': 'cljk-qikg-2dx-pzls'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '4vth-1xns-2dx-8940'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '5f61-bex4-2dx-sgw'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '5xc3-ag48-2dx-a6og'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '5xc6-4awg-2dx-f6v4'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': 'bwnk-k0ow-2dx-7dio'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '5lhi-pbk-2dx-2wfc'}},
{'@type': 'janusgraph:RelationIdentifier',
'@value': {'relationId': '5d6x-avyg-2dx-7gns'}}]
But instead I want it to return this:
['4g09-20qw-2dx-1l1c', '5hxx-9x9k-2dx-4qo8', 'cljk-qikg-2dx-pzls', '4vth-1xns-2dx-8940', '5f61-bex4-2dx-sgw', '5xc3-ag48-2dx-a6og', '5xc6-4awg-2dx-f6v4', 'bwnk-k0ow-2dx-7dio', '5lhi-pbk-2dx-2wfc', '5d6x-avyg-2dx-7gns']
This works as expected in the gremlin console.
Python3.7, gremlinpython==3.4.2