import { daffMagentoGetCategoryTree } from '@daffodil/navigation/driver/magento'
Generates a category tree query with the specified number of nested child category tree fragments.
function daffMagentoGetCategoryTree(
depth: number = 3
extraFragments: any[] = []
): TypedDocumentNode<unknown, unknown>
| Parameter | depth: number |
|---|---|
| Default | 3 |
| Description | The maximum depth to which category children should be added to the fragment. |
| Parameter | extraFragments: any[] |
|---|---|
| Default | [] |
| Description |