filter.list
list(): FilterHandle<unknown>[]Active filter handles known to this API instance.
Only handles whose underlying filter is still registered with the
manager are returned; removed filters (via handle.remove() or
clear()) are filtered out.
Returns: FilterHandle<unknown>[]
Useful for building "currently filtered: N" UI badges with per-filter remove buttons.
Example
api.filter.nodes.range({ property: "age", min: 18 });
api.filter.edges.match({ property: "relationship", oneOf: ["WORKS_AT"] });
for (const h of api.filter.list()) {
console.log(h.target, h.type, h.id);
// "nodes" "range" "range-1"
// "edges" "match" "match-1"
}