Alokai
You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current

getCategory

Endpoint for loading categories based on filter parameters. By default, it uses the getCategoryDefaultQuery GraphQL query

Signature

export declare function getCategory(
	context: SetupContext,
	params: CategoryWhereSearch,
	customQuery?: CustomQuery,
	responseOptions?: ResponseOptions
): Promise<any>;

Parameters

NameRequiredTypeDescription
contextRequiredSetupContextAutomatically injected context. Refer to SetupContext
paramsRequiredCategoryWhereSearchFiltering and pagination options
customQueryOptionalCustomQueryCustom queries included in the request
responseOptionsOptionalResponseOptions

Returns

Paginated categories data

Referenced Types

On this page