Skip to main content

customerCategoryDetail

Requires a customer (portal or buyer app) session.

Returns a category detail (subcategories) by slug.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

query CustomerCategoryDetail($slug: String!) {
customerCategoryDetail(slug: $slug) {
id
name
imageUrl
slug
subcategories {
id
name
imageUrl
slug
}
}
}

Variables:

{
"slug": "string"
}

Response:

{
"data": {
"customerCategoryDetail": {
"id": "id",
"name": "string",
"imageUrl": "string",
"slug": "string",
"subcategories": [
{
"id": "id",
"name": "string",
"imageUrl": "string",
"slug": "string"
}
]
}
}
}
customerCategoryDetail(
slug: String!
): CategoryDetail!

Arguments​

customerCategoryDetail.slug ● String! non-null scalar​

The slug that identifies the record.

Type​

CategoryDetail object​

A category with its subcategories.