Product List
Product lists are very similar to search in the sense that they display lists of products and can be filtered with facets. However, they differ in that they are normally pre-built pages. The only difference to a landing page is that they have the ProductListWidget
which takes similar parameters to the search query.
query ProductList {
page(path: "/clothing/sale/mens-clothing-sale") {
title
metaDescription
metaSearchKeywords
widgets {
... on ProductListWidget {
id
title
descriptionHtml {
content {
type
content
}
}
productList(input: {
currency: GBP
shippingDestination: GB
limit: 30
offset: 0
sort: RELEVANCE
facets: []
}) {
total
hasMore
facets {
... on RangedFacet {
facetName
facetHeader
options {
displayName
from
to
matchedProductCount
}
}
... on SimpleFacet {
facetName
facetHeader
options {
optionName
displayName
matchedProductCount
}
}
... on SliderFacet {
facetName
facetHeader
minValue
maxValue
}
}
products {
url
title
images {
thumbnail
largeProduct
zoom
}
reviews {
total
averageScore
}
defaultVariant(options: {
currency:GBP,
shippingDestination: GB,
}) {
title
price(currency: GBP,
shippingDestination: GB) {
price {
currency
amount
displayValue
}
rrp {
currency
amount
displayValue
}
}
}
}
}
}
}
}
}