When we getting the Configurable Wish list Items from GraphQl Service that time child_sku getting same from configurable.
example : I added to wish list like test-XL and Test-M simple products from configurable. But in GraphQl Response getting only Test-M for two items.
Magento version : 2.4.3-p1
vendor/magento/module-configurable-product-graph-ql/Model/Wishlist/ChildSku.php
Respose :
{
"data": {
"customer": {
"wishlists": [
{
"id": "16",
"items_count": 2,
"items_v2": {
"page_info": {
"total_pages": 1,
"current_page": 1,
"page_size": 20
},
"items": [
{
"id": "114",
"quantity": 1,
"child_sku": "Test-M"
},
{
"id": "115",
"quantity": 1,
"child_sku": "Test-M"
}
]
}
}
]
}
}
}
If the configurable product has a data type of parent_sku and child_sku, the wish list item will get same parent sku. That is why we should complete AssignmentHolic on time to have separate data types for parent sku and child sku if we want to get different SKUs for each one in graphql service.