Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create vertex with Custom vertex id #278

Open
mkeshav opened this issue Apr 22, 2019 · 1 comment
Open

Create vertex with Custom vertex id #278

mkeshav opened this issue Apr 22, 2019 · 1 comment

Comments

@mkeshav
Copy link

mkeshav commented Apr 22, 2019

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

@bowofolaf
Copy link
Contributor

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants