Skip to main content

category Query

Look up a category by ID or slug.

category(
id: ID
slug: String
slugLanguageCode: LanguageCodeEnum
): Category

Arguments

category.id ● ID scalar miscellaneous

ID of the category.

category.slug ● String scalar miscellaneous

Slug of the category

category.slugLanguageCode ● LanguageCodeEnum enum miscellaneous

Language code of the category slug, omit to use primary slug.

Added in Saleor 3.21

Type

Category object products

Represents a single category of products. Categories allow to organize products in a tree-hierarchies which can be used for navigation in the storefront.