Skip to content
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
@paliarush

Description

@paliarush

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

  1. Depth = 0 returns all children (default)
  2. Depth = 1 returns only immediate children
  3. Depth = 2 returns only immediate children and their children; and so on
  4. Children are returned in a flat list (depth can be determined by "level" field)
  5. Changes are covered with web API functional tests. See \Magento\GraphQl\Catalog\ProductViewTest::testQueryAllFieldsSimpleProduct as an example.

Metadata

Metadata

Assignees

Labels

for-groomingThis issue needs to be discussed before it can be worked ongood first issueGood for newcomerssmall

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions