跳到主要内容

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​

ParameterTypeDescription
EntityTypeT图实体类型。
optionsUseOptions<EntityStaticType<T, "findPathsOptions">>路径查询选项或幂等 factory。

Returns​

RxDBResource<GraphQueryResult<GraphPath<T>>>

路径结果数组的查询资源。