Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit de30d0a

Browse files
authored
Fix the topics for categories and categoryList queries according to PR magento2#30630 (#8123)
* Fix the topics for `categories` and `categoryList` queries according to PR magento2#30630 * Small fixes according to request by reviewer
1 parent 1641f15 commit de30d0a

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/_includes/graphql/category-filter-input.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Attribute | Data type | Description
44
--- | --- | ---
55
`ids` | FilterEqualTypeInput | Filters by the specified category IDs
66
`name` | FilterMatchTypeInput | Filters by the display name of the category
7+
`parent_id` | FilterEqualTypeInput | Filters by parent category ID
78
`url_key` | FilterEqualTypeInput | Filters by the part of the URL that identifies the category
89
`url_path` | FilterEqualTypeInput | Filters by the URL path for the category
910

src/guides/v2.4/graphql/queries/categories.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The `categories` query supports the following types of filters. You can specify
99

1010
- Category ID
1111
- Category name
12+
- Parent category ID
1213
- URL key
1314
- URL path
1415

@@ -33,7 +34,14 @@ The following query returns the top-level categories (as well as two levels of c
3334

3435
```graphql
3536
{
36-
categories(filters: {ids: {in: ["3", "9", "11", "20", "37", "38"]}} pageSize:3 currentPage: 2){
37+
categories(
38+
filters: {
39+
ids: {in: ["3", "9", "11", "20", "37", "38"]}
40+
parent_id: {in: ["2"]}
41+
}
42+
pageSize:3
43+
currentPage: 2
44+
) {
3745
total_count
3846
items {
3947
id

src/guides/v2.4/graphql/queries/category-list.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ The `categoryList` query supports the following types of filters. You can specif
1212

1313
- Category ID
1414
- Category name
15+
- Parent category ID
1516
- URL key
1617
- URL path
1718

@@ -42,7 +43,12 @@ The following query returns information about category IDs `11` and `20` and two
4243

4344
```graphql
4445
{
45-
categoryList(filters: {ids: {in: ["11", "20"]}}) {
46+
categoryList(
47+
filters: {
48+
ids: {in: ["11", "20"]}
49+
parent_id: {in: ["2"]}
50+
}
51+
) {
4652
children_count
4753
children {
4854
id

0 commit comments

Comments
 (0)