Open History to see the last commit
1---
2id: findProblems
3title: findProblems
4---
5
6```ts
7function findProblems(health): HealthNode[];
8```
9
10Defined in: [packages/db/src/collection/health-tree.ts:77](https://github.com/TanStack/db/blob/main/packages/db/src/collection/health-tree.ts#L77)
11
12Every node in a health tree that shows a problem of its own, in tree order:
13a `failureReason` or an `error`. A node whose only problems are below it is
14not listed; its descendants are.
15
16## Parameters
17
18### health
19
20[`HealthNode`](../interfaces/HealthNode.md)
21
22## Returns
23
24[`HealthNode`](../interfaces/HealthNode.md)[]