Skip to main content

categories Query

List of the shop's categories.

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

Arguments

filter ● CategoryFilterInput

Filtering options for categories.

where ● CategoryWhereInput

Where 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

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

last ● Int

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