Skip to content

Commit 7b66243

Browse files
committed
#31331:[GraphQl] Add wishlist item to cart Implementation
1 parent 111ecf3 commit 7b66243

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type WishlistOutput @doc(description: "Deprecated: `Wishlist` type should be use
2323
}
2424

2525
type Wishlist {
26-
id: ID @deprecated(reason: "Use `wishlists.uid` instead") @doc(description: "The unique ID for a `Wishlist` object")
26+
id: ID @deprecated(reason: "Use `uid` instead") @doc(description: "The unique ID for a `Wishlist` object")
2727
uid: ID @doc(description: "The unique ID for a `Wishlist` object")
2828
items: [WishlistItem] @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItemsResolver") @deprecated(reason: "Use field `items_v2` from type `Wishlist` instead")
2929
items_v2(
@@ -36,7 +36,7 @@ type Wishlist {
3636
}
3737

3838
interface WishlistItemInterface @typeResolver(class: "Magento\\WishlistGraphQl\\Model\\Resolver\\Type\\WishlistItemType") {
39-
id: ID! @deprecated(reason: "Use `WishlistItemInterface.uid` instead") @doc(description: "The unique ID for a `WishlistItemInterface` object")
39+
id: ID! @deprecated(reason: "Use `uid` instead") @doc(description: "The unique ID for a `WishlistItemInterface` object")
4040
uid: ID! @doc(description: "The unique ID for a `WishlistItemInterface` object")
4141
quantity: Float! @doc(description: "The quantity of this wish list item")
4242
description: String @doc(description: "The description of the item")
@@ -64,13 +64,13 @@ type Mutation {
6464
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")
6565
addWishlistItemsToCart(
6666
wishlistUid: ID!, @doc(description: "The unique ID of the requisition list")
67-
wishlistItemUids: [ID!] @doc(description: "An array of UIDs presenting products to be added to the cart. If no UIDs are specified, all items in the wishlist will be added to the cart")
68-
): AddWishlistItemsToCartOutput @resolver(class: "Magento\\WishlistGraphQl\\Model\\Resolver\\Wishlist\\AddToCart") @doc(description: "Add items in the wishlist to the customer's cart")
67+
wishlistItemUids: [ID!] @doc(description: "An array of UIDs representing products to be added to the cart. If no UIDs are specified, all items in the wishlist will be added to the cart")
68+
): AddWishlistItemsToCartOutput @resolver(class: "Magento\\WishlistGraphQl\\Model\\Resolver\\Wishlist\\AddToCart") @doc(description: "Add items in the specified wishlist to the customer's cart")
6969
}
7070

7171
type AddWishlistItemsToCartOutput {
72-
status: Boolean!
73-
add_wishlist_items_to_cart_user_errors: [CartUserInputError!]!
72+
status: Boolean! @doc(description: "Indicates whether the attempt to add items to the customer's cart was successful")
73+
add_wishlist_items_to_cart_user_errors: [CartUserInputError!]! @doc(description: "An array of errors encountered while adding products to the customer's cart")
7474
}
7575

7676
input WishlistItemInput @doc(description: "Defines the items to add to a wish list") {

0 commit comments

Comments
 (0)