Skip to main content
Version: 3.x

categories

List of the shop's categories.

categories(
filter: CategoryFilterInput
where: CategoryWhereInput
sortBy: CategorySortingInput
level: Int
before: String
after: String
first: Int
last: Int
): CategoryCountableConnection

Arguments

categories.filter ● CategoryFilterInput input

Filtering options for categories.

categories.where ● CategoryWhereInput input

Where filtering options.

Added in Saleor 3.14
This API is currently in Feature Preview and can be subject to changes at later point.

categories.sortBy ● CategorySortingInput input

Sort categories.

categories.level ● Int scalar

Filter categories by the nesting level in the category tree.

categories.before ● String scalar

Return the elements in the list that come before the specified cursor.

categories.after ● String scalar

Return the elements in the list that come after the specified cursor.

categories.first ● Int scalar

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

categories.last ● Int scalar

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

Type

CategoryCountableConnection object


Was this page helpful?