跳到主要内容

useFindAncestors()

function useFindAncestors<T>(EntityType, options): RxDBResource<InstanceType<T>[]>;

Defined in: hooks.ts:286

Find all ancestor entities in a tree structure

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterTypeDescription
EntityTypeTThe entity class
optionsUseOptions<EntityStaticType<T, "findTreeOptions">>Tree query options

Returns

RxDBResource<InstanceType<T>[]>

A reactive resource object containing ancestor entities