Home > @shopware-pwa/shopware-6-client > getCategories

# getCategories() function

Signature:

export declare function getCategories(searchCriteria?: ShopwareSearchParams, contextInstance?: ShopwareApiInstance): Promise<EntityResult<"category", Category[]>>;

# Parameters

Parameter Type Description
searchCriteria ShopwareSearchParams
contextInstance ShopwareApiInstance

Returns:

Promise<EntityResult<"category", Category[]>>

# Exceptions

ClientApiError