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.
Configurable Products counted but not retrieved in GraphQL (works with REST endpoint) #238
Closed
Description
Preconditions (*)
- Magento Commerce 2.3.0 beta32
- Custom instance with custom attributes and attribute sets
Attributes used:
- Growth method: Dropdown
- Height: Dropdown
Steps to reproduce (*)
- Create Product (Required fields + Categories)
- Create Configurations for Product
- Select Custom Attributes for Configurations
- Select Custom Attributes Values
- Skipped image uploading
- Enter price for each configuration
- Enter quantity for each configuration
- Generate Products
- Retrieve Category with products using GraphQL
{
category(id: 5) {
product_count
products {
items {
name
}
}
}
}
Expected result (*)
- Category with products as name and product_count
{
"data": {
"category": {
"product_count": 1,
"products": {
"items": [
{
"name": "Buxushaag kant-en-klaar"
}
]
}
}
}
}
Actual result (*)
- Category with product_count matching Magento admin but without products
{
"data": {
"category": {
"product_count": 1,
"products": {
"items": []
}
}
}
}
Extra information
This isn't only related to CategoryTree it also happens with Products.
When retrieving the product using the REST API
it works as expected.