useCountNeighbors()
function useCountNeighbors<T>(EntityType, options): RxDBResource<number>;
Defined in: rxdb-react/src/hooks.ts:297
统计图实体的邻居数量。
Type Parameters
| Type Parameter |
|---|
T extends GraphEntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | 图实体类型。 |
options | UseOptions<EntityStaticType<T, "findNeighborsOptions">> | 邻居查询选项或幂等 factory。 |
Returns
RxDBResource<number>
以 0 为初值的数量资源。