Skip to content

Commit 9ee75fa

Browse files
committed
B2B-2469: Improve category children loading
- schema changes
1 parent d8b7fe2 commit 9ee75fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogGraphQl/etc/schema.graphqls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ type Query {
1313
category (
1414
id: Int @doc(description: "The category ID to use as the root of the search.")
1515
): CategoryTree
16-
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryTree") @doc(description: "Search for categories that match the criteria specified in the `search` and `filter` attributes.") @deprecated(reason: "Use `categoryList` instead.") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoryTreeIdentity")
16+
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryTree") @doc(description: "Search for categories that match the criteria specified in the `search` and `filter` attributes.") @deprecated(reason: "Use `categories` instead.") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoryTreeIdentity")
1717
categoryList(
1818
filters: CategoryFilterInput @doc(description: "Identifies which Category filter inputs to search for and return.")
1919
pageSize: Int = 20 @doc(description: "Specifies the maximum number of results to return at once. The default value is 20.")
2020
currentPage: Int = 1 @doc(description: "Specifies which page of results to return. The default value is 1.")
21-
): [CategoryTree] @doc(description: "Return an array of categories based on the specified filters.") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryList") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoriesIdentity")
21+
): [CategoryTree] @doc(description: "Return an array of categories based on the specified filters.") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryList") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoriesIdentity") @deprecated(reason: "Use `categories` instead.")
2222
categories (
2323
filters: CategoryFilterInput @doc(description: "Identifies which Category filter inputs to search for and return.")
2424
pageSize: Int = 20 @doc(description: "Specifies the maximum number of results to return at once. The default value is 20.")

0 commit comments

Comments
 (0)