Skip to content

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

@dzmitry-lahoda

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)

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