How to sort by inV() or outE() from the edge?
I need to get the roles that are assigned to the user.
Users can have multiple roles.
g.addV('project').as('p').
.addV('user').property(T.id, 'u1').as('u1')
.addV('user').property(T.id, 'u2').as('u2')
.addE('role').from('p').to('u1').property('role', 'role1')
.addE('role').from('p').to('u1').property('role', 'role2')
.addE('role').from('p').to('u1').property('role', 'role3')
.addE('role').from('p').to('u2').property('role', 'role1')
In, the above graph, the project has 2 users and user u1 has 3 roles and u2 has 1 role.
How to retrieve all edges/roles with range but by the user.
g.V('p').outE().range(1, 2).inV().elementMap()
The above query returns few edges of the user, not all edges/roles belong to the user.
How to query it?
