Compare
The Compare menu lets a signed-in customer build a side-by-side comparison list of products. A client uses it to power the "add to compare" action and the compare page.
When you use it
The compare list is per-customer. A customer can add a product to the list, list everything in it, view one item, remove an item, or clear the whole list at once. Compare is a customer feature — it is not available to guests.
Operations in this menu
| Operation | GraphQL field |
|---|---|
| Get Compare Items | compareItems query |
| Get Compare Item | compareItem(id:) query |
| Create Compare Item | createCompareItem mutation |
| Delete Compare Item | deleteCompareItem mutation |
| Delete All Compare Items | deleteAllCompareItems mutation |
All Compare operations require a customer Bearer token — see Authentication.

