You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/code/Magento/CatalogGraphQl/etc/schema.graphqls
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -8,12 +8,12 @@ type Query {
8
8
pageSize: Int = 20 @doc(description: "Specifies the maximum number of results to return at once. This attribute is optional."),
9
9
currentPage: Int = 1 @doc(description: "Specifies which page of results to return. The default value is 1."),
10
10
sort: ProductSortInput@doc(description: "Specifies which attribute to sort on, and whether to return the results in ascending or descending order.")
11
-
): Products
12
-
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Products") @doc(description: "The products query searches for products that match the criteria specified in the search and filter attributes") @cache(cacheTag: "cat_p", cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\Identity")
11
+
): Products
12
+
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Products") @doc(description: "The products query searches for products that match the criteria specified in the search and filter attributes") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\Identity")
13
13
category (
14
14
id: Int@doc(description: "Id of the category")
15
15
): CategoryTree
16
-
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryTree") @doc(description: "The category query searches for categories that match the criteria specified in the search and filter attributes") @cache(cacheTag: "cat_c", cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoryTreeIdentity")
16
+
@resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\CategoryTree") @doc(description: "The category query searches for categories that match the criteria specified in the search and filter attributes") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoryTreeIdentity")
17
17
}
18
18
19
19
typePrice@doc(description: "The Price object defines the price of a product as well as any tax-related adjustments.") {
price: ProductPrices@doc(description: "A ProductPrices object, indicating the price of an item") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\Price")
98
98
gift_message_available: String@doc(description: "Indicates whether a gift message is available")
99
99
manufacturer: Int@doc(description: "A number representing the product's manufacturer")
100
-
categories: [CategoryInterface] @doc(description: "The categories assigned to a product") @cache(cacheTag: "cat_c", cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoriesIdentity") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Categories")
100
+
categories: [CategoryInterface] @doc(description: "The categories assigned to a product") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Categories") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\CategoriesIdentity")
pageSize: Int = 20 @doc(description: "Specifies the maximum number of results to return at once. This attribute is optional."),
219
219
currentPage: Int = 1 @doc(description: "Specifies which page of results to return. The default value is 1."),
220
220
sort: ProductSortInput@doc(description: "Specifies which attribute to sort on, and whether to return the results in ascending or descending order.")
221
-
): CategoryProducts@doc(description: "The list of products assigned to the category") @cache(cacheTag: "cat_p", cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\Identity") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\Products")
221
+
): CategoryProducts@doc(description: "The list of products assigned to the category") @cache(cacheIdentity: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\Identity") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Category\\Products")
@@ -233,7 +233,7 @@ type CustomizableRadioOption implements CustomizableOptionInterface @doc(descrip
233
233
value: [CustomizableRadioValue] @doc(description: "An array that defines a set of radio buttons")
234
234
}
235
235
236
-
typeCustomizableRadioValue@doc(description: "CustomizableRadioValue defines the price and sku of a product whose page contains a customized set of radio buttons") {
236
+
typeCustomizableRadioValue@doc(description: "CustomizableRadioValue defines the price and sku of a product whose page contains a customized set of radio buttons") {
237
237
option_type_id: Int@doc(description: "The ID assigned to the value")
238
238
price: Float@doc(description: "The price assigned to this option")
239
239
price_type: PriceTypeEnum@doc(description: "FIXED, PERCENT, or DYNAMIC")
@@ -246,7 +246,7 @@ type CustomizableCheckboxOption implements CustomizableOptionInterface @doc(desc
246
246
value: [CustomizableCheckboxValue] @doc(description: "An array that defines a set of checkbox values")
247
247
}
248
248
249
-
typeCustomizableCheckboxValue@doc(description: "CustomizableCheckboxValue defines the price and sku of a product whose page contains a customized set of checkbox values") {
249
+
typeCustomizableCheckboxValue@doc(description: "CustomizableCheckboxValue defines the price and sku of a product whose page contains a customized set of checkbox values") {
250
250
option_type_id: Int@doc(description: "The ID assigned to the value")
251
251
price: Float@doc(description: "The price assigned to this option")
252
252
price_type: PriceTypeEnum@doc(description: "FIXED, PERCENT, or DYNAMIC")
@@ -329,7 +329,7 @@ type ProductMediaGalleryEntriesVideoContent @doc(description: "ProductMediaGalle
329
329
video_metadata: String@doc(description: "Optional data about the video")
330
330
}
331
331
332
-
inputProductSortInput@doc(description: "ProductSortInput specifies the attribute to use for sorting search results and indicates whether the results are sorted in ascending or descending order") {
332
+
inputProductSortInput@doc(description: "ProductSortInput specifies the attribute to use for sorting search results and indicates whether the results are sorted in ascending or descending order") {
333
333
name: SortEnum@doc(description: "The product name. Customers use this name to identify the product.")
334
334
sku: SortEnum@doc(description: "A number or code assigned to a product to identify the product, options, price, and manufacturer")
335
335
description: SortEnum@doc(description: "Detailed information about the product. The value can include simple HTML tags.")
0 commit comments