useFindAncestors()
function useFindAncestors<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;
Defined in: hooks.ts:280
Find all ancestor entities in a tree structure
Type Parameters
| Type Parameter |
|---|
T extends EntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | The entity class |
options | UseOptions<EntityStaticType<T, "findTreeOptions">> | Tree query options |
Returns
RxDBResource<InstanceType<T>[]>
A resource object containing ancestor entities