fetchQueryCategories

Function

Aggregates categories from a search query. Note that aggregation categories are all lowercased.

Parameters

Parameter Type Default Notes
query Required IQuery

The query to search for categories.

requestOptions Required IHubRequestOptions

The request options to use for the search.

Available requestOptions

Property Type Notes
authentication Optional ArcGISIdentityManager
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

a flat array of fully qualified category paths, all lowercased (e.g. ["/categories/category1", "/categories/category1/subcategory1", ...])

Promise<string[]>

Function defined in common/src/core/schemas/internal/categories/fetchQueryCategories.ts:14