edges.add
add(inputs: EdgeInput[]): Promise<EdgeData[]>Add one or more edges to the graph.
The source and target nodes must already exist. Recorded in history as
"AddEdges". Emits "edges:added".
inputs | EdgeInput[] | Descriptors for each edge to create. |
Returns: Promise<EdgeData[]>
Example
const [rel] = await api.edges.add([{ id: "e1", source: "s1", target: "s2", relationship: "KNOWS" }]);