Arguments

id
String!
required

The Shopify Collection ID.

Returns

ShopifyCollection.*

Any requested field from the ShopifyCollection object.

Example - request

query GetShopifyCollection {
  shopifyCollection(id: "123456789") {
    id
    title
    description
    productsConnection(first: 5) {
      edges {
        node {
          id
          title
          description
          vendor
          url
        }
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
}

Example - response

{
  "data": {
    "shopifyCollection": {
      "id": "123456789",
      "title": "Summer Collection",
      "description": "A handpicked selection of our summer favorites.",
      "productsConnection": {
        "edges": [
          {
            "node": {
              "id": "987654321",
              "title": "Beach Towel",
              "description": "A colorful, soft beach towel perfect for summer days.",
              "vendor": "Beachware Co.",
              "url": "https://example.com/beach-towel"
            }
          },
          {
            "node": {
              "id": "987654322",
              "title": "Sunglasses",
              "description": "Stylish and protective sunglasses for bright days.",
              "vendor": "Sunny Eyewear",
              "url": "https://example.com/sunglasses"
            }
          }
        ],
        "pageInfo": {
          "endCursor": "abcd1234",
          "hasNextPage": true
        }
      }
    }
  }
}