Skip to content

Commit 506c148

Browse files
author
vitaliyboyko
committed
[Revert]GraphQl-44: added schema for format of textarea ui element
Will be added in scope of further PR's Signed-off-by: vitaliyboyko <v.boyko@atwix.com>
1 parent 4b14faa commit 506c148

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ interface ProductInterface @typeResolver(class: "Magento\\CatalogGraphQl\\Model\
248248
id: Int @doc(description: "The ID number assigned to the product") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\EntityIdToId")
249249
name: String @doc(description: "The product name. Customers use this name to identify the product.")
250250
sku: String @doc(description: "A number or code assigned to a product to identify the product, options, price, and manufacturer")
251-
description: ProductHtmlAttribute @doc(description: "Detailed information about the product. The value can include simple HTML tags.")
252-
short_description: ProductHtmlAttribute @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")
253253
special_price: Float @doc(description: "The discounted price of the product")
254254
special_from_date: String @doc(description: "The beginning date that a product has a special price")
255255
special_to_date: String @doc(description: "The end date that a product has a special price")
@@ -551,10 +551,3 @@ type SortFields @doc(description: "SortFields contains a default value for sort
551551
default: String @doc(description: "Default value of sort fields")
552552
options: [SortField] @doc(description: "Available sort fields")
553553
}
554-
555-
type ProductHtmlAttribute {
556-
content (
557-
format: String! @doc(description: "The format of content")
558-
): String
559-
@resolver(class: "\\Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\ProductHtmlAttribute")
560-
}

0 commit comments

Comments
 (0)