Skip to content

productCategoryPageByPath

Queryin Catalog

Get category page data with associated products and CMS content by path

Arguments

ArgumentTypeDescription
pathString!

Returns

ProductCategoryPage

FieldTypeDescription
metaPageMetaPage metadata for SEO and other purposes
pathString!The URL path of the category page
nameStringThe name of the page.
indexableBooleanIndicates whether the page is indexable for search engines.
categoryProductCategory!The product category associated with this page
productListingConfigProductListingConfig!Configuration for the product listing on this page
breadcrumbs[Breadcrumb!]!The breadcrumbs representing the navigation path to the page.

Example

query {
productCategoryPageByPath(path: "/categories/electronics/laptops") {
path
name
category {
id
name
description
}
productListingConfig {
categoryId
defaultOrder
}
breadcrumbs {
name
path
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccResolved