Skip to content

Commit 676f87c

Browse files
committed
MC-39690: CartItemInterface should include customizable_options
1 parent 057c268 commit 676f87c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type AddDownloadableProductsToCartOutput {
2525
}
2626

2727
type DownloadableCartItem implements CartItemInterface @doc(description: "Downloadable Cart Item") {
28-
customizable_options: [SelectedCustomizableOption] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
28+
customizable_options: [SelectedCustomizableOption]! @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
2929
links: [DownloadableProductLinks] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Links") @doc(description: "An array containing information about the links for the added to cart downloadable product")
3030
samples: [DownloadableProductSamples] @resolver(class: "Magento\\DownloadableGraphQl\\Resolver\\DownloadableCartItem\\Samples") @doc(description: "DownloadableProductSamples defines characteristics of a downloadable product")
3131
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ type SetGuestEmailOnCartOutput {
322322
}
323323

324324
type SimpleCartItem implements CartItemInterface @doc(description: "Simple Cart Item") {
325-
customizable_options: [SelectedCustomizableOption] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
325+
customizable_options: [SelectedCustomizableOption]! @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
326326
}
327327

328328
type VirtualCartItem implements CartItemInterface @doc(description: "Virtual Cart Item") {
329-
customizable_options: [SelectedCustomizableOption] @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
329+
customizable_options: [SelectedCustomizableOption]! @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CustomizableOptions")
330330
}
331331

332332
interface CartItemInterface @typeResolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\CartItemTypeResolver") {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface WishlistItemInterface @typeResolver(class: "Magento\\WishlistGraphQl\\
4040
description: String @doc(description: "The description of the item")
4141
added_at: String! @doc(description: "The date and time the item was added to the wish list")
4242
product: ProductInterface @doc(description: "Product details of the wish list item") @resolver(class: "\\Magento\\WishlistGraphQl\\Model\\Resolver\\ProductResolver")
43-
customizable_options: [SelectedCustomizableOption] @doc(description: "Custom options selected for the wish list item")
43+
customizable_options: [SelectedCustomizableOption]! @doc(description: "Custom options selected for the wish list item")
4444
}
4545

4646
type WishlistItems {

0 commit comments

Comments
 (0)