edges.get
get(edgeId: string): EdgeDataRetrieve a single edge by its id.
Not undoable (read-only). Does not emit any event.
edgeId | string | The id of the edge to look up. |
Returns: EdgeData
Example
const edge = api.edges.get("e1");
if (edge) console.log(edge.relationship);