gremlin-scala
gremlin-scala copied to clipboard
Create vertex with Custom vertex id
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
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)