Skip to content

Commit 987c753

Browse files
authored
Update schema.graphqls
Adjusting schema's descriptions
1 parent b71144d commit 987c753

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

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

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ type Query {
66
}
77

88
type Customer {
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)
1010
}
1111

1212
type WishlistOutput @doc(description: "Deprecated: `Wishlist` type should be used instead") {
@@ -34,43 +34,43 @@ type WishlistItem {
3434
}
3535

3636
type Mutation {
37-
addProductsToWishlist(wishlistId: ID!, wishlistItems: [WishlistItemInput!]!): AddProductsToWishlistOutput @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\AddProductsToWishlist")
38-
removeProductsFromWishlist(wishlistId: ID!, wishlistItemsIds: [ID!]!): RemoveProductsFromWishlistOutput @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\RemoveProductsFromWishlist")
39-
updateProductsInWishlist(wishlistId: ID!, wishlistItems: [WishlistItemUpdateInput!]!): UpdateProductsInWishlistOutput @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\UpdateProductsInWishlist")
37+
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")
4040
}
4141

42-
input WishlistItemInput {
43-
sku: String
44-
quantity: Float
45-
parent_sku: String,
46-
selected_options: [String!]
47-
entered_options: [EnteredOptionInput!]
42+
input WishlistItemInput @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")
4848
}
4949

50-
type AddProductsToWishlistOutput {
51-
wishlist: Wishlist!
52-
userInputErrors:[CheckoutUserInputError]! @doc(description: "An array of wishlist adding errors.")
50+
type AddProductsToWishlistOutput @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")
5353
}
5454

55-
input EnteredOptionInput {
56-
id: String! @doc(description: "base64 encoded id")
57-
value: String!
55+
input EnteredOptionInput @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")
5858
}
5959

60-
type RemoveProductsFromWishlistOutput {
61-
wishlist: Wishlist!
62-
userInputErrors:[CheckoutUserInputError]! @doc(description:"An array of wishlist removing errors.")
60+
type RemoveProductsFromWishlistOutput @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")
6363
}
6464

65-
input WishlistItemUpdateInput {
66-
wishlist_item_id: ID
67-
quantity: Float
68-
description: String
69-
selected_options: [String!]
70-
entered_options: [EnteredOptionInput!]
65+
input WishlistItemUpdateInput @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")
7171
}
7272

73-
type UpdateProductsInWishlistOutput {
74-
wishlist: Wishlist!
75-
userInputErrors:[CheckoutUserInputError]! @doc(description:"An array of wishlist updating errors.")
73+
type UpdateProductsInWishlistOutput @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")
7676
}

0 commit comments

Comments
 (0)