Skip to content

saveEdge() should allow $document to be null #68

Open
@F21

Description

@F21

Many times, I just need to create a simple edge between 2 vertices with a label.

In this case, I do not need to set attributes of any type on an edge and it is cumbersome to manually instantiate that edge.

Currently, the method signature for saving an edge is:

public function saveEdge($graphName, $from, $to, $label = null, $document)

I propose that we set it to this:

public function saveEdge($graphName, $from, $to, $label = null, $document =null)

If $document is null, the method can simply create a new edge automatically. The only problem is that we might want the edge object back, so in this case, it will need to return the edge object.

Comments welcome 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions