This repository was archived by the owner on Dec 19, 2019. It is now read-only.
This repository was archived by the owner on Dec 19, 2019. It is now read-only.
Why both cartItems[N].variant_sku
and cartItems[N].data.sku
are required? #349
Closed
Description
Steps to reproduce (*)
- Create Configurable Product with
Name & SKU: conf
Weight: 1
Price: 1
Variations:
- sku: conf-white, qty: 12, price: 10
- sku: conf-black, qty: 12, price: 10
- Perform GraphQL query:
mutation {
addConfigurableProductsToCart(
input: {
cart_id: "gbK3g1pcEiyd39h2clKomLU6qsyFLAVT"
cartItems: [
{
data: {
qty: 1
sku: "conf-black"
}
}
{
data: {
qty: 1
sku: "conf-white"
}
}
]
}
) {
cart {
items {
id
qty
product {
name
sku
}
}
}
}
}
Expected result (*)
- Isn't SKU unique value?
Actual result (*)
- No error and only one value is required