filter

filter.all

all(children: FilterHandle<unknown>[], opts?: GroupOptions): FilterHandle

AND-compose existing filter handles into a single group. Same semantics as any, but using boolean conjunction.

childrenFilterHandle<unknown>[]
optsGroupOptions

Returns: FilterHandle

Example

const adults     = api.filter.nodes.range({ property: "age", min: 18 });
const employed   = api.filter.nodes.match({ property: "status", oneOf: ["employed"] });

// Adults who are employed
const workingAdults = api.filter.all([adults, employed]);

All children must share the same target ("nodes" or "edges"). cleanupChildren defaults to true; set it to false to revert the children to independent filters once the group is removed.