query

productComparison

Get all the products that have the same category.
Arguments
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.
List of product details for comparison.
subtitle
String
Subtitle or additional description for the comparison.
title
String
Title or name of the comparison.
Query
1query productComparison($slug: [String]!) {
2 productComparison(slug: $slug) {
3 attributes_metadata {
4 title
5 }
6 items {
7 color
8 item_code
9 item_type
10 has_variant
11 uid
12 attributes
13 custom_config
14 description
15 discount
16 highlights
17 image_nature
18 is_dependent
19 name
20 product_group_tag
21 product_online_date
22 rating
23 rating_count
24 short_description
25 similars
26 slug
27 tags
28 teaser_tag
29 tryouts
30 type
31 sellable
32 identifiers
33 country_of_origin
34 no_of_boxes
35 promo_meta
36 }
37 subtitle
38 title
39 }
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}