Skip to content

Commit f8cbd49

Browse files
author
Valeriy Nayda
committed
GraphQL-43: [Query] My Account > My Wish List
1 parent ce025fb commit f8cbd49

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

app/code/Magento/WishlistGraphQl/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"require": {
66
"php": "~7.1.3||~7.2.0",
77
"magento/framework": "*",
8-
"magento/module-catalog": "*",
98
"magento/module-catalog-graph-ql": "*",
109
"magento/module-wishlist": "*",
1110
"magento/module-store": "*"

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
# See COPYING.txt for license details.
33

44
type Query {
5-
wishlist: WishlistOutput @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistResolver") @doc(description: "todo")
5+
wishlist: WishlistOutput @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistResolver") @doc(description: "The wishlist query returns the contents of a customer's wish list")
66
}
77

88
type WishlistOutput {
9-
items: [WishlistItem] @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItemsResolver") @doc(description: "todo"),
10-
items_count: Int @doc(description: "todo"),
11-
name: String @doc(description: "todo"),
12-
sharing_code: String @doc(description: "todo"),
13-
updated_at: String @doc(description: "todo")
9+
items: [WishlistItem] @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItemsResolver") @doc(description: "An array of items in the customer's wish list"),
10+
items_count: Int @doc(description: "The number of items in the wish list"),
11+
name: String @doc(description: "When multiple wish lists are enabled, the name the customer assigns to the wishlist"),
12+
sharing_code: String @doc(description: "An encrypted code that Magento uses to link to the wish list"),
13+
updated_at: String @doc(description: "The time of the last modification to the wish list")
1414
}
1515

1616
type WishlistItem {
17-
id: Int @doc(description: "todo")
18-
qty: Float @doc(description: "todo"),
19-
description: String @doc(description: "todo"),
20-
added_at: String @doc(description: "todo"),
17+
id: Int @doc(description: "The wish list item ID")
18+
qty: Float @doc(description: "The quantity of this wish list item"),
19+
description: String @doc(description: "The customer's comment about this item"),
20+
added_at: String @doc(description: "The time when the customer added the item to the wish list"),
2121
product: ProductInterface @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\ProductResolver")
2222
}

0 commit comments

Comments
 (0)