architecture
architecture copied to clipboard
ConfigurableWishlistItem.child_sku throws an internal error if customer wishlist has un-configured configurable product
Problem
ACP2E-267: GraphQl - Issues with add Configurable product to Wishlist
[2022-01-27T01:13:07.037742+00:00] report.ERROR: Call to a member function getProduct() on null
GraphQL (20:13)
19: ... on ConfigurableWishlistItem {
20: child_sku
^
21: customizable_options {
Solution
Deprecate ConfigurableWishlistItem.child_sku and add a new field ConfigurableWishlistItem.configured_variant that returns child product details (ProductInterface ) or NULL if the child product is not configured
Requested Reviewers
@cpartica