Skip to content

Commit 1978ed8

Browse files
eduard13keharper
andauthored
Applying schema suggestions
Co-authored-by: Kevin Harper <keharper@users.noreply.github.com>
1 parent 1df4ca7 commit 1978ed8

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ type ItemSelectedBundleOptionValue @doc(description: "A list of values for the s
119119
}
120120

121121
type BundleWishlistItem implements WishlistItemInterface {
122-
bundle_options: [SelectedBundleOption!] @doc(description: "An array containing information about the selected bundled items") @resolver(class: "\\Magento\\BundleGraphQl\\Model\\Wishlist\\BundleOptions")
122+
bundle_options: [SelectedBundleOption!] @doc(description: "An array containing information about the selected bundle items") @resolver(class: "\\Magento\\BundleGraphQl\\Model\\Wishlist\\BundleOptions")
123123
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ type StoreConfig @doc(description: "The type contains information about a store
493493
root_category_id: Int @doc(description: "The ID of the root category") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\RootCategoryId")
494494
}
495495

496-
type SimpleWishlistItem implements WishlistItemInterface @doc(description: "Simple Wishlist Item") {
496+
type SimpleWishlistItem implements WishlistItemInterface @doc(description: "A simple product wishlist Item") {
497497
}
498498

499-
type VirtualWishlistItem implements WishlistItemInterface @doc(description: "Virtual Wishlist Item") {
499+
type VirtualWishlistItem implements WishlistItemInterface @doc(description: "A virtual product wishlist item") {
500500
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ type SelectedConfigurableOption {
6969
value_label: String!
7070
}
7171

72-
type ConfigurableWishlistItem implements WishlistItemInterface {
73-
child_sku: String! @doc(description: "SKU of the simple product corresponding to a set of selected configurable options.") @resolver(class: "\\Magento\\ConfigurableProductGraphQl\\Model\\Wishlist\\ChildSku")
74-
configurable_options: [SelectedConfigurableOption!] @resolver(class: "\\Magento\\ConfigurableProductGraphQl\\Model\\Wishlist\\ConfigurableOptions")
72+
type ConfigurableWishlistItem implements WishlistItemInterface @doc(description: "A configurable product wishlist item"){
73+
child_sku: String! @doc(description: "The SKU of the simple product corresponding to a set of selected configurable options") @resolver(class: "\\Magento\\ConfigurableProductGraphQl\\Model\\Wishlist\\ChildSku")
74+
configurable_options: [SelectedConfigurableOption!] @resolver(class: "\\Magento\\ConfigurableProductGraphQl\\Model\\Wishlist\\ConfigurableOptions") @doc (description: "An array of selected configurable options")
7575
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type DownloadableProductSamples @doc(description: "DownloadableProductSamples de
6565
sample_file: String @deprecated(reason: "`sample_url` serves to get the downloadable sample")
6666
}
6767

68-
type DownloadableWishlistItem implements WishlistItemInterface @doc(description: "Downloadable Wishlist Item") {
68+
type DownloadableWishlistItem implements WishlistItemInterface @doc(description: "A downloadable product wishlist item") {
6969
links_v2: [DownloadableProductLinks] @doc(description: "An array containing information about the selected links") @resolver(class: "\\Magento\\DownloadableGraphQl\\Model\\Wishlist\\ItemLinks")
70-
samples: [DownloadableProductSamples] @doc(description: "DownloadableProductSamples defines characteristics of a downloadable product") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples")
70+
samples: [DownloadableProductSamples] @doc(description: "An array containing information about the selected samples") @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\Product\\Samples")
7171
}

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ type Customer {
99
wishlists(
1010
pageSize: Int = 20 @doc(description: "Specifies the maximum number of results to return at once. This attribute is optional."),
1111
currentPage: Int = 1 @doc(description: "Specifies which page of results to return. The default value is 1.")
12-
): [Wishlist!]! @doc(description: "Customer wishlists are limited to a max of 1 wishlist in Magento Open Source") @resolver(class:"\\Magento\\WishlistGraphQl\\Model\\Resolver\\CustomerWishlists")
13-
wishlist: Wishlist! @deprecated(reason: "Use `Customer.wishlists` or `Customer.wishlist_v2`") @resolver(class:"\\Magento\\WishlistGraphQl\\Model\\Resolver\\CustomerWishlistResolver") @doc(description: "Contains the contents of a customer's wish lists") @cache(cacheable: false)
14-
wishlist_v2(id: ID!): Wishlist @doc(description: "Get the customer's wishlist by an ID") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistById")
12+
): [Wishlist!]! @doc(description: "An array of wishlists. In Magento Open Source, customers are limited to one wishlist. The number of wishlists is not restricted for Magento Commerce") @resolver(class:"\\Magento\\WishlistGraphQl\\Model\\Resolver\\CustomerWishlists")
13+
wishlist: Wishlist! @deprecated(reason: "Use `Customer.wishlists` or `Customer.wishlist_v2`") @resolver(class:"\\Magento\\WishlistGraphQl\\Model\\Resolver\\CustomerWishlistResolver") @doc(description: "Contains a customer's wish lists") @cache(cacheable: false)
14+
wishlist_v2(id: ID!): Wishlist @doc(description: "Retrieve the specified wishlist") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistById")
1515
}
1616

1717
type WishlistOutput @doc(description: "Deprecated: `Wishlist` type should be used instead") {
@@ -25,19 +25,19 @@ type WishlistOutput @doc(description: "Deprecated: `Wishlist` type should be use
2525
type Wishlist {
2626
id: ID @doc(description: "Wishlist unique identifier")
2727
items: [WishlistItem] @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItemsResolver") @deprecated(reason: "Use field `items_v2` from type `Wishlist` instead")
28-
items_v2: [WishlistItemInterface] @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItems") @doc(description: "An array of items in the customer's wishlist")
28+
items_v2: [WishlistItemInterface] @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\WishlistItems") @doc(description: "An array of items in the customer's wish list")
2929
items_count: Int @doc(description: "The number of items in the wish list")
3030
sharing_code: String @doc(description: "An encrypted code that Magento uses to link to the wish list")
3131
updated_at: String @doc(description: "The time of the last modification to the wish list")
3232
}
3333

3434
interface WishlistItemInterface @typeResolver(class: "Magento\\WishlistGraphQl\\Model\\Resolver\\Type\\WishlistItemType") {
35-
id: ID
36-
quantity: Float
37-
description: String
38-
added_at: String
39-
product: ProductInterface @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\ProductResolver")
40-
customizable_options: [SelectedCustomizableOption]
35+
id: ID @doc(description: "The ID of the wish list item")
36+
quantity: Float @doc(description: "The quantity of this wish list item")
37+
description: String @doc(description: "The description of the item")
38+
added_at: String @doc(description: "The date and time the item was added to the wish list")
39+
product: ProductInterface @doc(description: "Product details of the wish list item") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\ProductResolver")
40+
customizable_options: [SelectedCustomizableOption] @doc(description: "Custom options selected for the wish list item")
4141
}
4242

4343
type WishlistItem {

0 commit comments

Comments
 (0)