Skip to content

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

Description

@dzmitry-lahoda

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions