This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
Add category children depth parameter #21
Closed
Description
As a Magento developer, I want to control the depth of the returned children for the requested category so that my queries can be more performant.
Acceptance criteria
- Depth = 0 returns all children (default)
- Depth = 1 returns only immediate children
- Depth = 2 returns only immediate children and their children; and so on
- Children are returned in a flat list (depth can be determined by "level" field)
- Changes are covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.