useGraphPaths()
function useGraphPaths<T>(EntityType, options): RxDBResource<GraphQueryResult<GraphPath<T>>>;
Defined in: rxdb-react/src/hooks.ts:310
查找图实体之间的路径。
Type Parameters
| Type Parameter |
|---|
T extends GraphEntityType |
Parameters
| Parameter | Type | Description |
|---|---|---|
EntityType | T | 图实体类型。 |
options | UseOptions<EntityStaticType<T, "findPathsOptions">> | 路径查询选项或幂等 factory。 |
Returns
RxDBResource<GraphQueryResult<GraphPath<T>>>
路径结果数组的查询资源。