Arguments
slug
String!Required
A short, human-readable, URL-friendly identifier of a collection. You can get slug value from the endpoint /service/application/catalog/v1.0/collections/.
search
StringThe search query for entering partial or full name of product, brand, category, or collection.
filters
BooleanTrue for fetching all filter parameters and False for disabling the filter parameters.
first
IntThe number of items to retrieve in each page.
after
StringPage ID to retrieve next set of results.
pageNo
IntPage Number to retrieve next set of results.
pageType
StringPage Type to retrieve set of results can be cursor or number.
query
StringThe search filter parameters. Filter parameters will be passed in f parameter as shown in the example below. Double Pipe (||) denotes the OR condition, whereas Triple-colon (:::) indicates a new filter parameter applied as an AND condition.
sortOn
Sort_onThe order in which the list of products should be sorted, e.g. popularity, price, latest and discount, in either ascending or descending order. See the supported values below.
Response
filters
[ProductFilters]True for fetching all filter parameters and False for disabling the filter parameters.
items
[Product]List of collection objects.
page
PageInfoPage information for collections response.
sort_on
[ProductSortOn]The order in which the list of products should be sorted, e.g. popularity, price, latest and discount, in either ascending or descending order. See the supported values below.
Query
1query collectionItems(2 $slug: String!3 $search: String4 $filters: Boolean5 $first: Int6 $after: String7 $pageNo: Int8 $pageType: String9 $query: String10 $sortOn: Sort_on11) {12 collectionItems(13 slug: $slug14 search: $search15 filters: $filters16 first: $first17 after: $after18 pageNo: $pageNo19 pageType: $pageType20 query: $query21 sortOn: $sortOn22 ) {23 items {24 color25 item_code26 item_type27 has_variant28 uid29 attributes30 custom_config31 description32 discount33 highlights34 image_nature35 is_dependent36 name37 product_group_tag38 product_online_date39 rating40 rating_count41 short_description42 similars43 slug44 tags45 teaser_tag46 tryouts47 type48 sellable49 identifiers50 country_of_origin51 no_of_boxes52 promo_meta53 }54 page {55 current56 next_id57 has_previous58 has_next59 item_total60 type61 size62 }63 sort_on {64 display65 is_selected66 logo67 name68 value69 }70 }71}
Try it
Input Variables
1{2 "slug": "slug",3 "search": "search",4 "filters": true,5 "first": 42,6 "after": "after",7 "pageNo": 42,8 "pageType": "pageType",9 "query": "query",10 "sortOn": "latest"11}
Response
1{2 "collectionItems": {3 "items": [4 {5 "color": "#e10098",6 "item_code": "item_code",7 "item_type": "item_type",8 "has_variant": true,9 "uid": 42,10 "attributes": {},11 "custom_config": {},12 "description": "A description",13 "discount": "discount",14 "highlights": [15 "highlights"16 ],17 "image_nature": "image_nature",18 "is_dependent": true,19 "name": "A name",20 "product_group_tag": [21 "product_group_tag"22 ],23 "product_online_date": "product_online_date",24 "rating": 30.7,25 "rating_count": 42,26 "short_description": "short_description",27 "similars": [28 "similars"29 ],30 "slug": "slug",31 "tags": [32 "tags"33 ],34 "teaser_tag": "teaser_tag",35 "tryouts": [36 "tryouts"37 ],38 "type": "type",39 "sellable": true,40 "identifiers": [41 "08a16b83-9094-4e89-8c05-2ccadd5c1c7e"42 ],43 "country_of_origin": "country_of_origin",44 "no_of_boxes": 42,45 "promo_meta": {}46 }47 ],48 "page": {49 "current": 42,50 "next_id": "next_id",51 "has_previous": true,52 "has_next": true,53 "item_total": 42,54 "type": "type",55 "size": 4256 },57 "sort_on": [58 {59 "display": "display",60 "is_selected": true,61 "logo": "logo",62 "name": "A name",63 "value": "value"64 }65 ]66 }67}
Was this section helpful?