edges.where
where(filter: EdgeFilter): EdgeQueryBegin 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.
filter | EdgeFilter | A predicate or filter descriptor applied to all edges. |
Returns: EdgeQuery
Example
const knowsEdges = api.edges.where({ relationship: "KNOWS" }).toArray();