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

Fix the topics for categories and categoryList queries according to PR magento2#30630 #8123

Merged
merged 2 commits into from
Oct 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/_includes/graphql/category-filter-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Attribute | Data type | Description
--- | --- | ---
`ids` | FilterEqualTypeInput | Filters by the specified category IDs
`name` | FilterMatchTypeInput | Filters by the display name of the category
`parent_id` | FilterEqualTypeInput | Filters by parent category ID
`url_key` | FilterEqualTypeInput | Filters by the part of the URL that identifies the category
`url_path` | FilterEqualTypeInput | Filters by the URL path for the category

Expand Down
10 changes: 9 additions & 1 deletion src/guides/v2.4/graphql/queries/categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The `categories` query supports the following types of filters. You can specify

- Category ID
- Category name
- Parent category ID
- URL key
- URL path

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

```graphql
{
categories(filters: {ids: {in: ["3", "9", "11", "20", "37", "38"]}} pageSize:3 currentPage: 2){
categories(
filters: {
ids: {in: ["3", "9", "11", "20", "37", "38"]}
parent_id: {in: ["2"]}
}
pageSize:3
currentPage: 2
) {
total_count
items {
id
Expand Down
8 changes: 7 additions & 1 deletion src/guides/v2.4/graphql/queries/category-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The `categoryList` query supports the following types of filters. You can specif

- Category ID
- Category name
- Parent category ID
- URL key
- URL path

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

```graphql
{
categoryList(filters: {ids: {in: ["11", "20"]}}) {
categoryList(
filters: {
ids: {in: ["11", "20"]}
parent_id: {in: ["2"]}
}
) {
children_count
children {
id
Expand Down