Defined in: packages/db/src/types.ts:856
One node of a health tree. A Collection's tree is one node; a live query's has one node for itself and one for each source alias in query order. The shape is fixed by the query, and nodes without a problem are present too.
A node shows at most one problem. failureReason: something went wrong and the sync adapter is still trying, so the problem clears by itself. error: the first load failed, the sync adapter stopped, the Collection crashed, or, on a live query's own node, a request for more data failed.
readonly alias: string;Defined in: packages/db/src/types.ts:858
The query alias, or root for the Collection the tree was read from.
readonly collectionId: string;Defined in: packages/db/src/types.ts:859
readonly error: HealthProblem | null;Defined in: packages/db/src/types.ts:866
readonly failureReason: HealthProblem | null;Defined in: packages/db/src/types.ts:865
readonly hasErrors: boolean;Defined in: packages/db/src/types.ts:864
This node or any node below it has a failureReason or an error.
readonly kind: "source" | "include" | "live-query";Defined in: packages/db/src/types.ts:861
include is an include's source; its rows feed per-row child Collections.
readonly reloading: boolean;Defined in: packages/db/src/types.ts:871
A reload's new sync run is in flight: the rows, status, and problem shown are the previous run's until it commits or fails.
readonly sources: readonly HealthNode[];Defined in: packages/db/src/types.ts:872
readonly status: CollectionStatus;Defined in: packages/db/src/types.ts:862