Skip to content

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

OperationGraphQL field
Get Compare ItemscompareItems query
Get Compare ItemcompareItem(id:) query
Create Compare ItemcreateCompareItem mutation
Delete Compare ItemdeleteCompareItem mutation
Delete All Compare ItemsdeleteAllCompareItems mutation

All Compare operations require a customer Bearer token — see Authentication.

Released under the MIT License.