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
id: Int@doc(description: "The ID number assigned to the product") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\EntityIdToId")
249
249
name: String@doc(description: "The product name. Customers use this name to identify the product.")
250
250
sku: String@doc(description: "A number or code assigned to a product to identify the product, options, price, and manufacturer")
251
-
description: String@doc(description: "Detailed information about the product. The value can include simple HTML tags.")
252
-
short_description: String@doc(description: "A short description of the product. Its use depends on the theme.")
251
+
description: String@doc(description: "Detailed information about the product. The value can include simple HTML tags.")@resolver(class: "\\Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\ProductHtmlAttribute")
252
+
short_description: String@doc(description: "A short description of the product. Its use depends on the theme.")@resolver(class: "\\Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\ProductHtmlAttribute")
253
253
special_price: Float@doc(description: "The discounted price of the product")
254
254
special_from_date: String@doc(description: "The beginning date that a product has a special price")
255
255
special_to_date: String@doc(description: "The end date that a product has a special price")
@@ -548,6 +548,6 @@ type SortField {
548
548
}
549
549
550
550
typeSortFields@doc(description: "SortFields contains a default value for sort fields and all available sort fields") {
551
-
default: String@doc(description: "Default value of sort fields")
551
+
default: String@doc(description: "Default value of sort fields")
Copy file name to clipboardExpand all lines: app/code/Magento/CustomerGraphQl/etc/schema.graphqls
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,14 @@ type Query {
5
5
customer: Customer@resolver(class: "Magento\\CustomerGraphQl\\Model\\Resolver\\Customer") @doc(description: "The customer query returns information about a customer account")
typeEntityUrl@doc(description: "EntityUrl is an output object containing the `id`, `canonical_url`, and `type` attributes") {
4
+
typeEntityUrl@doc(description: "EntityUrl is an output object containing the `id`, `relative_url`, and `type` attributes") {
5
5
id: Int@doc(description: "The ID assigned to the object associated with the specified url. This could be a product ID, category ID, or page ID.")
6
-
canonical_url: String@doc(description: "The internal relative URL. If the specified url is a redirect, the query returns the redirected URL, not the original.")
6
+
relative_url: String@doc(description: "The internal relative URL. If the specified url is a redirect, the query returns the redirected URL, not the original.")
7
7
type: UrlRewriteEntityTypeEnum@doc(description: "One of PRODUCT, CATEGORY, or CMS_PAGE.")
8
8
}
9
9
10
10
typeQuery {
11
-
urlResolver(url: String!): EntityUrl@resolver(class: "Magento\\UrlRewriteGraphQl\\Model\\Resolver\\UrlRewrite") @doc(description: "The urlResolver query returns the canonical URL for a specified product, category or CMS page")
11
+
urlResolver(url: String!): EntityUrl@resolver(class: "Magento\\UrlRewriteGraphQl\\Model\\Resolver\\UrlRewrite") @doc(description: "The urlResolver query returns the relative URL for a specified product, category or CMS page")
0 commit comments