Background: I tried to use this question as a baseline but because I'm using Cosmos and had a slightly different scenario I wasn't able to make it work.
I want to know if it is possible to copy all the edges (in and out) from one vertex to a new vertex in CosmosDb Gremlin. The reason being is that I am using the username as the partition key eg) User-User123 and in Cosmos DB this cannot be changed once set.
The idea would be that if a user wanted to change their username, from User123 to User123db,
- a new vertex would be created with a new partition key of User-User123db.
- all the edges from User-User123 would point to User-User123db
- the Vertex User-User123 would then be deleted.
Using the tinkerpop graph below, how would it be possible to create a new vertex with a name of marko2 and point all the in and out edges from marko to the new marko2 vertex and then remove the old marko.
Thanks to anyone that can help =)
Here are the available Gremlin steps that can be used with CosmosDB