Skip to main content

categories

Search and retrieve product categories with comprehensive filtering and pagination.

Provides flexible search capabilities across category data including names, descriptions, hierarchy levels, and product associations. Results are paginated and can be filtered based on various category criteria.

Possible errors:

  • CATEGORY_SEARCH_ERROR: Failed to search categories
  • CATEGORY_FETCH_ERROR: Failed to retrieve category list
categories(
filter: CategorySearchInput
userId: Int
): CategoryResponse!

Arguments

categories.filter ● CategorySearchInput input

Search criteria for filtering categories.

If not provided, returns all accessible categories with default pagination settings. Supports filtering by name, hierarchy level, visibility, and product associations.

categories.userId ● Int scalar

User context for personalized category search.

When provided, returns category information customized for the specific user, including personalized visibility and content.

Type

CategoryResponse object

Paginated response containing category search results.

Provides a structured response for category queries with pagination support. Includes the list of categories, total count, and pagination metadata for efficient data navigation.