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

Do not use variables to add edges to make code more portable (i.e. Comsoms DB) #12

Open
dzmitry-lahoda opened this issue May 24, 2020 · 0 comments

Comments

@dzmitry-lahoda
Copy link

and code more declarative

gremlin> p = graph.addVertex(label, "product",
                   "name", "Red Gremlin Jacket")
==>v[3]
gremlin>
gremlin> p.addEdge("inCategory", c)

it is easy to add edge by getting vertex by name and then adding edge.

people would find out variables themselves (or provide 2 variants with and without variables)

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

1 participant