Fetch products and items within a specific collection with advanced filtering, sorting, and pagination options. You can get slug value from the query collections.
Arguments
slug
String!Required
URL-friendly identifier of the collection, e.g. 'best-sellers' or 'new-arrivals'.
search
StringSearch query to find specific products within the collection, e.g. 'red dress'.
filters
BooleanEnable/disable filter parameters in response. True to include all filters, false to disable.
first
IntNumber of items to retrieve in cursor-based pagination, e.g. 20.
after
StringCursor for next page in cursor-based pagination, e.g. '60f7b3b3b3f3b3b3b3f3b3b3'.
pageNo
IntPage number for number-based pagination, e.g. 1.
pageSize
IntNumber of collection items to retrieve per page, e.g. 12.
pageType
StringPagination type: 'cursor' for cursor-based or 'number' for page-based pagination.
query
StringAdvanced filter query string with conditions, e.g. 'brand.name:nike||price:[100:::500]'.
The query allows advanced filters using || for OR, ::: for AND, and [min TO max] for ranges.
For example, f=brand.name:nike||brand.name:adidas:::price:[100 TO 500]
translates to (brand.name:(nike OR adidas)) AND price:[100 TO 500].
sortOn
Sort_onSort order for products, e.g. 'price_asc', 'popularity', 'discount_dsc', 'latest'.
Response
filters
[ProductFilters]True for fetching all filter parameters and False for disabling the filter parameters.
items
[CollectionItem]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
Try it
Input Variables
Response
Was this section helpful?