Skip to main content
Version: 3.x

categories

List of the shop's categories.

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

Arguments

filter (CategoryFilterInput)

Filtering options for categories.

sortBy (CategorySortingInput)

Sort categories.

level (Int)

Filter categories by the nesting level in the category tree.

before (String)

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

after (String)

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

first (Int)

Return the first n elements from the list.

last (Int)

Return the last n elements from the list.

Type

CategoryCountableConnection