gremlin-scala icon indicating copy to clipboard operation
gremlin-scala copied to clipboard

Create vertex with Custom vertex id

Open mkeshav opened this issue 5 years ago • 1 comments

Hi There, As per AWS Neptune documentation, if you pass "id" attribute, that will be the vertex id. If you do not, then neptune will generate a uuid.

I am trying to do local development with gremlin server and trying to create a vertex with uuid as it is id and cannot find any example of that.

Help would be appreciated

mkeshav avatar Apr 22 '19 22:04 mkeshav

I have the same problem. Unfortunately I cant use the id annotation on a case class due to neptune limitations, and it appears the gremlin-scala DSL doesn't allow you do

val object = MyCaseClass("someAttribute")
graph + ("customId", object)

bowofolaf avatar Jun 04 '19 03:06 bowofolaf