跳到主要内容

useCountNeighbors()

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

Defined in: rxdb-react/src/hooks.ts:297

统计图实体的邻居数量。

Type Parameters​

Type Parameter
T extends GraphEntityType

Parameters​

ParameterTypeDescription
EntityTypeT图实体类型。
optionsUseOptions<EntityStaticType<T, "findNeighborsOptions">>邻居查询选项或幂等 factory。

Returns​

RxDBResource<number>

以 0 为初值的数量资源。