Menu
site_categoryTree
The category tree, optionally starting from a given category.
Use it in a workflow
- Add a step and choose the BigCommerce Storefront connector.
- Pick the site_categoryTree action (under Category).
- Fill in the fields below, then reference the result from later steps as
{{siteCategorytree.response.data}}.
Query
This is the query the action sends by default. Edit it in the step's Query field to change which fields come back.
query SiteCategoryTree($rootEntityId: Int) {
site {
categoryTree(rootEntityId: $rootEntityId) {
entityId
name
path
description
productCount
image {
altText
isDefault
}
hasChildren
}
}
}
Variables
Pass these as a JSON object in the step's Variables field.
{
"rootEntityId": 0
}
Need more? See the BigCommerce Storefront guide for connection setup and behaviour shared by every action.
Was this page helpful?