edges

edges.where

where(filter: EdgeFilter): EdgeQuery

Begin a chainable query that filters edges by the given predicate.

Returns an EdgeQuery builder; call .toArray() to materialize results or .remove() to act on the matched set. Not undoable until a terminal mutation method is called on the returned query.

filterEdgeFilterA predicate or filter descriptor applied to all edges.

Returns: EdgeQuery

Example

const knowsEdges = api.edges.where({ relationship: "KNOWS" }).toArray();