Open
Description
Preconditions and environment
The compare_list field under the customer query in GraphQL always returns null for logged-in users, even when the customer has added items to the compare list on the storefront.
- Magento version: 2.4.7-p3
- PHP version: 8.1
- GraphQL module: Magento_CatalogGraphQl is enabled
- A customer account exists and is logged in using a valid customer token
- The customer has added at least one product to the Compare Products list on the storefront
Steps to reproduce
- Log in as a customer on the storefront.
- Add products to the compare list.
- Use this GraphQL query with the customer's auth token:
{
customer {
compare_list {
items {
product {
id
name
sku
}
}
}
}
}
Expected result
Should return the compare list items for the logged-in customer.
Actual result
{
"data": {
"customer": {
"compare_list": null
}
}
}
Additional information
This affects mobile and PWA implementations where a consistent compare list experience is expected across web and app.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Type
Projects
Status
Ready for Grooming