edges

edges.get

get(edgeId: string): EdgeData

Retrieve a single edge by its id.

Not undoable (read-only). Does not emit any event.

edgeIdstringThe id of the edge to look up.

Returns: EdgeData

Example

const edge = api.edges.get("e1");
if (edge) console.log(edge.relationship);