Skip to content
On this page

getStoreNavigation

Definition

Get a list of categories by provided search criteria.

Signature

ts
export async function getStoreNavigation(
  {
    requestActiveId,
    requestRootId,
    depth,
    buildTree,
    searchCriteria,
  }: GetStoreNavigationParams,
  contextInstance: ShopwareApiInstance = defaultInstance
): Promise<StoreNavigationElement[]> 

Parameters

NameTypeDescription
{ requestActiveId, requestRootId, depth, buildTree, searchCriteria, }
GetStoreNavigationParams
search criteria for categories
contextInstance
ShopwareApiInstance
instance of the api client (by default it's an Axios instance)

Return type

ts
Promise<Array<StoreNavigationElement>>

Usage example

WARNING

Example is generated automatically. Sometimes it's required to be adjusted to your needs.

Open in StackBlitz

getStoreNavigation has loaded