Skip to main content

Variable: edgeKeys

const edgeKeys: object

Defined in: web/lib/hooks/use-edges.ts:165

Query key factory for edge queries.

Type declaration​

all​

all: readonly ["edges"]

Base key

ancestors()​

ancestors: (nodeUri) => readonly ["edges", "ancestors", string]

Key for ancestors (full path)

Parameters​

nodeUri​

string

Returns​

readonly ["edges", "ancestors", string]

children()​

children: (nodeUri) => readonly ["edges", "children", string]

Key for children of a node

Parameters​

nodeUri​

string

Returns​

readonly ["edges", "children", string]

detail()​

detail: (uri) => readonly ["edges", "detail", string]

Key for single edge

Parameters​

uri​

string

Returns​

readonly ["edges", "detail", string]

hierarchy()​

hierarchy: (subkind, relationSlug) => readonly ["edges", "hierarchy", string, string]

Key for hierarchy

Parameters​

subkind​

string

relationSlug​

string

Returns​

readonly ["edges", "hierarchy", string, string]

list()​

list: (params) => readonly ["edges", "list", EdgeListParams]

Key for edges list with params

Parameters​

params​

EdgeListParams

Returns​

readonly ["edges", "list", EdgeListParams]

parents()​

parents: (nodeUri) => readonly ["edges", "parents", string]

Key for parents of a node

Parameters​

nodeUri​

string

Returns​

readonly ["edges", "parents", string]