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/WishlistGraphQl/etc/schema.graphqls
+28-28Lines changed: 28 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ type Query {
6
6
}
7
7
8
8
typeCustomer {
9
-
wishlist: Wishlist!@resolver(class:"\\Magento\\WishlistGraphQl\\Model\\Resolver\\CustomerWishlistResolver") @doc(description: "The wishlist query returns the contents of a customer's wish lists") @cache(cacheable: false)
9
+
wishlist: Wishlist!@resolver(class:"\\Magento\\WishlistGraphQl\\Model\\Resolver\\CustomerWishlistResolver") @doc(description: "Contains the contents of a customer's wish lists") @cache(cacheable: false)
10
10
}
11
11
12
12
typeWishlistOutput@doc(description: "Deprecated: `Wishlist` type should be used instead") {
addProductsToWishlist(wishlistId: ID!, wishlistItems: [WishlistItemInput!]!): AddProductsToWishlistOutput@doc(description: "Adds one or more products to the specified wish list. This mutation supports all product types") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\AddProductsToWishlist")
38
+
removeProductsFromWishlist(wishlistId: ID!, wishlistItemsIds: [ID!]!): RemoveProductsFromWishlistOutput@doc(description: "Removes one or more products from the specified wish list") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\RemoveProductsFromWishlist")
39
+
updateProductsInWishlist(wishlistId: ID!, wishlistItems: [WishlistItemUpdateInput!]!): UpdateProductsInWishlistOutput@doc(description: "Updates one or more products in the specified wish list") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\UpdateProductsInWishlist")
40
40
}
41
41
42
-
inputWishlistItemInput {
43
-
sku: String
44
-
quantity: Float
45
-
parent_sku: String,
46
-
selected_options: [String!]
47
-
entered_options: [EnteredOptionInput!]
42
+
inputWishlistItemInput@doc(description: "Defines the items to add to a wish list") {
43
+
sku: String@doc(description: "The SKU of the product to add. For complex product types, specify the child product SKU")
44
+
quantity: Float@doc(description: "The amount or number of items to add")
45
+
parent_sku: String@doc(description: "For complex product types, the SKU of the parent product")
46
+
selected_options: [String!]@doc(description: "An array of strings corresponding to options the customer selected")
47
+
entered_options: [EnteredOptionInput!]@doc(description: "An array of options that the customer entered")
48
48
}
49
49
50
-
typeAddProductsToWishlistOutput {
51
-
wishlist: Wishlist!
52
-
userInputErrors:[CheckoutUserInputError]!@doc(description: "An array of wishlist adding errors.")
50
+
typeAddProductsToWishlistOutput@doc(description: "Contains the customer\`s wish list and any errors encountered") {
51
+
wishlist: Wishlist!@doc(description: "Contains the wish list with all items that were successfully added")
52
+
userInputErrors:[CheckoutUserInputError]!@doc(description: "An array of errors encountered while adding products to a wish list")
53
53
}
54
54
55
-
inputEnteredOptionInput {
56
-
id: String!@doc(description: "base64 encoded id")
57
-
value: String!
55
+
inputEnteredOptionInput@doc(description: "Defines a customer-entered option") {
56
+
id: String!@doc(description: "A base64 encoded ID")
57
+
value: String!@doc(description: "Text the customer entered")
58
58
}
59
59
60
-
typeRemoveProductsFromWishlistOutput {
61
-
wishlist: Wishlist!
62
-
userInputErrors:[CheckoutUserInputError]!@doc(description:"An array of wishlist removing errors.")
60
+
typeRemoveProductsFromWishlistOutput@doc(description: "Contains the customer\`s wish list and any errors encountered") {
61
+
wishlist: Wishlist!@doc(description: "Contains the wish list with after items were successfully deleted")
62
+
userInputErrors:[CheckoutUserInputError]!@doc(description:"An array of errors encountered while deleting products from a wish list")
63
63
}
64
64
65
-
inputWishlistItemUpdateInput {
66
-
wishlist_item_id: ID
67
-
quantity: Float
68
-
description: String
69
-
selected_options: [String!]
70
-
entered_options: [EnteredOptionInput!]
65
+
inputWishlistItemUpdateInput@doc(description: "Defines updates to items in a wish list") {
66
+
wishlist_item_id: ID@doc(description: "The ID of the wishlist item to update")
67
+
quantity: Float@doc(description: "The new amount or number of this item")
68
+
description: String@doc(description: "Describes the update")
69
+
selected_options: [String!]@doc(description: "An array of strings corresponding to options the customer selected")
70
+
entered_options: [EnteredOptionInput!]@doc(description: "An array of options that the customer entered")
71
71
}
72
72
73
-
typeUpdateProductsInWishlistOutput {
74
-
wishlist: Wishlist!
75
-
userInputErrors:[CheckoutUserInputError]!@doc(description:"An array of wishlist updating errors.")
73
+
typeUpdateProductsInWishlistOutput@doc(description: "Contains the customer\`s wish list and any errors encountered") {
74
+
wishlist: Wishlist!@doc(description: "Contains the wish list with all items that were successfully updated")
75
+
userInputErrors:[CheckoutUserInputError]!@doc(description:"An array of errors encountered while updating products in a wish list")
0 commit comments