Variable: nodeKeys
constnodeKeys:object
Defined in: web/lib/hooks/use-nodes.ts:138
Query key factory for node queries.
Type declaration
all
all: readonly [
"nodes"]
Base key
byKind()
byKind: (
kind,params?) => readonly ["nodes","kind",NodeKind,undefined|NodeListParams]
Key for nodes by kind
Parameters
kind
params?
Returns
readonly ["nodes", "kind", NodeKind, undefined | NodeListParams]
bySubkind()
bySubkind: (
subkind,params?) => readonly ["nodes","subkind",string,undefined|NodeListParams]
Key for nodes by subkind
Parameters
subkind
string
params?
Returns
readonly ["nodes", "subkind", string, undefined | NodeListParams]
detail()
detail: (
uri) => readonly ["nodes","detail",string]
Key for single node
Parameters
uri
string
Returns
readonly ["nodes", "detail", string]
hierarchy()
hierarchy: (
subkind) => readonly ["nodes","hierarchy",string]
Key for hierarchy (field tree, etc.)
Parameters
subkind
string
Returns
readonly ["nodes", "hierarchy", string]
search()
search: (
query,params?) => readonly ["nodes","search",string,undefined|NodeSearchParams]
Key for search queries
Parameters
query
string
params?
Returns
readonly ["nodes", "search", string, undefined | NodeSearchParams]