useFindDescendants()
function useFindDescendants<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;
Defined in: hooks.ts:255
Find all descendant 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 (entityId, depth, etc.) |
Returns
RxDBResource<InstanceType<T>[]>
A resource object containing descendant entities