Open
Description
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 😄