Skip to main content

category Query

Look up a category by ID or slug.

category(
id: ID
slug: String
slugLanguageCode: LanguageCodeEnum
): Category
Show return type

Arguments

id ● ID

ID of the category.

slug ● String

Slug of the category

slugLanguageCode ● LanguageCodeEnum

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

Added in Saleor 3.21

Type

Category

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