跳到主要内容

useCountNeighbors()

function useCountNeighbors<T>(EntityType, options): RxDBResource<number>;

Defined in: hooks.ts:331

Count neighbor entities in a graph structure

Type Parameters

Type Parameter
T extends EntityType

Parameters

ParameterTypeDescription
EntityTypeTThe entity class
optionsUseOptions<EntityStaticType<T, "findNeighborsOptions">>Graph query options

Returns

RxDBResource<number>

A resource object containing the count