Skip to main content

Function: useFacets()

useFacets(options): UseQueryResult<NodesResponse, Error>

Defined in: web/lib/hooks/use-nodes.ts:472

Fetches facet nodes (classification dimensions).

Parameters

options

UseNodeOptions = {}

Returns

UseQueryResult<NodesResponse, Error>

Remarks

Facets are dynamic and fetched from the knowledge graph where subkind='facet'. Users can propose new facets through governance.

Example

const { data } = useFacets();
// Returns: [{ label: 'Methodology', slug: 'methodology', ... }, ...]