List of curated product collections with filtering options based on tags and collection names.
Arguments
query
StringList of tags to filter collections.
tag
[String]List of tags to filter collections.
pageNo
IntThe page number to navigate through the given set of results.
pageSize
IntThe number of items to retrieve in each page.
Response
page
PageInfo!Required
Pagination details for the collection listings. It includes information such as the current page number, total pages, and items per page.
items
[Collection!]!Required
An array of collection details. Each item in the array represents a collection with various attributes and configurations.
filters
CollectionFilterFilter options available for the collection listings. This includes tags and filter types that can be used to refine the search results.
Query
1query collections(2 $query: String3 $tag: [String]4 $pageNo: Int5 $pageSize: Int6) {7 collections(query: $query, tag: $tag, pageNo: $pageNo, pageSize: $pageSize) {8 page {9 current10 next_id11 has_previous12 has_next13 item_total14 type15 size16 }17 items {18 uid19 type20 name21 description22 is_active23 slug24 allow_facets25 allow_sort26 sort_on27 priority28 visible_facets_keys29 _custom_json30 tags31 meta32 cron33 app_id34 }35 }36}
Try it
Input Variables
1{2 "query": "query",3 "tag": [4 "tag"5 ],6 "pageNo": 42,7 "pageSize": 428}
Response
1{2 "collections": {3 "page": {4 "current": 42,5 "next_id": "next_id",6 "has_previous": true,7 "has_next": true,8 "item_total": 42,9 "type": "type",10 "size": 4211 },12 "items": [13 {14 "uid": "uid",15 "type": "type",16 "name": "A name",17 "description": "A description",18 "is_active": true,19 "slug": "slug",20 "allow_facets": true,21 "allow_sort": true,22 "sort_on": "sort_on",23 "priority": 42,24 "visible_facets_keys": [25 "visible_facets_keys"26 ],27 "_custom_json": {},28 "tags": [29 "tags"30 ],31 "meta": {},32 "cron": {},33 "app_id": "app_id"34 }35 ]36 }37}
Was this section helpful?