0

Due to an application design fault, I need to add vertex_id as the property of the vertex. How to do that in Gremlin Query?

Thirumal
  • 8,280
  • 11
  • 53
  • 103

1 Answers1

0

Found it! The below query is working....

g.V().hasLabel('user').as('user').V().hasLabel('user')
.where(eq('user')).as('u_id').property('user_id', select('u_id').id())
Thirumal
  • 8,280
  • 11
  • 53
  • 103