Log in
Model

CreateCompareList

Magento\CompareListGraphQl\Model\Resolver\CreateCompareList

What it does

This GraphQL resolver handles the creation of product comparison lists in Magento 2.

Developers use this class to enable customers (both guests and logged-in users) to create and populate compare lists through GraphQL API mutations.

It automatically manages list ownership, generating unique IDs for guest users and associating lists with customer accounts for logged-in users.

Public Methods

  • resolve()