Arguments
slug
[String]!Required
A short, human-readable, URL-friendly identifier of a product. You can get slug value from the endpoint /service/application/catalog/v1.0/products/.
Response
attributes_metadata
[Attribute]Metadata about attributes used for comparing products.
items
[Product]List of product details for comparison.
subtitle
StringSubtitle or additional description for the comparison.
title
StringTitle or name of the comparison.
Query
1query productComparison($slug: [String]!) {2 productComparison(slug: $slug) {3 attributes_metadata {4 title5 }6 items {7 color8 item_code9 item_type10 has_variant11 uid12 attributes13 custom_config14 description15 discount16 highlights17 image_nature18 is_dependent19 name20 product_group_tag21 product_online_date22 rating23 rating_count24 short_description25 similars26 slug27 tags28 teaser_tag29 tryouts30 type31 sellable32 identifiers33 country_of_origin34 no_of_boxes35 promo_meta36 }37 subtitle38 title39 }40}
Try it
Input Variables
1{2 "slug": [3 "slug"4 ]5}
Response
1{2 "productComparison": {3 "attributes_metadata": [4 {5 "title": "title"6 }7 ],8 "items": [9 {10 "color": "#e10098",11 "item_code": "item_code",12 "item_type": "item_type",13 "has_variant": true,14 "uid": 42,15 "attributes": {},16 "custom_config": {},17 "description": "A description",18 "discount": "discount",19 "highlights": [20 "highlights"21 ],22 "image_nature": "image_nature",23 "is_dependent": true,24 "name": "A name",25 "product_group_tag": [26 "product_group_tag"27 ],28 "product_online_date": "product_online_date",29 "rating": 30.7,30 "rating_count": 42,31 "short_description": "short_description",32 "similars": [33 "similars"34 ],35 "slug": "slug",36 "tags": [37 "tags"38 ],39 "teaser_tag": "teaser_tag",40 "tryouts": [41 "tryouts"42 ],43 "type": "type",44 "sellable": true,45 "identifiers": [46 "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"47 ],48 "country_of_origin": "country_of_origin",49 "no_of_boxes": 42,50 "promo_meta": {}51 }52 ],53 "subtitle": "subtitle",54 "title": "title"55 }56}
Was this section helpful?