GetComparableItemsCollection
Magento\CompareListGraphQl\Model\Service\Collection\GetComparableItemsCollection
What it does
This service class retrieves a collection of products that have been added to a customer's compare list in GraphQL queries.
It configures the collection with product attributes, pricing, tax information, and ensures only visible products from the correct store are loaded.
Developers use this when implementing or extending GraphQL resolvers that need to fetch and display compare list items.
Public Methods
- execute()