GitHub

getCategoryNodeFragment

function

import { getCategoryNodeFragment } from '@daffodil/navigation/driver/magento'

Generates a category tree fragment with the specified number of nested child category trees.

function getCategoryNodeFragment(
  depth: number = 3
  extraFragments: any[] = []
): DocumentNode

Parameters

Parameterdepth: number
Default3
Description

The maximum depth to which category children should be added to the fragment.

ParameterextraFragments: any[]
Default[]
Description